-1

I want to change form and others common control the resolution size of PC.

sample: if PC resolution 1204.auto 1024 and other common control change.

Davide Piras
  • 43,984
  • 10
  • 98
  • 147
stataa
  • 37
  • 1
  • 4

1 Answers1

2

Find screen height and width and assign them:

Screen scr = Screen.PrimaryScreen;
int newWidth = scr.Bounds.Width;
int newHeight = scr.Bounds.Height;
deepi
  • 1,081
  • 10
  • 18
  • WebBrowser wb = new WebBrowser(); wb.Name = "web"; wb.ScrollBarsEnabled = true; wb.WebBrowserShortcutsEnabled = true; wb.Size = new System.Drawing.Size(newWidth, newHeight); – deepi Sep 02 '11 at 04:36