Answers for "c# get window size"

C#
0

how to get the width of the screen C#

Screen.FromControl(this).Bounds
Posted by: Guest on January-31-2021
0

c# setting window size

button1_Click(object sender, EventArgs e)
{
    // This will change the Form's Width and Height, respectively.
    this.Size = new Size(420, 200);
}
Posted by: Guest on May-09-2021

C# Answers by Framework

Browse Popular Code Answers by Language