Monday, May 6, 2013

C# screen resolution problems


MessageBox.Show(SystemInformation.PrimaryMonitorSize.Width.ToString()+"x"+SystemInformation.PrimaryMonitorSize.Height.ToString()
+"\n"+Screen.FromControl(this).Bounds.Width.ToString()+"x"+Screen.FromControl(this).Bounds.Height.ToString()
+"\n"+Screen.PrimaryScreen.Bounds.Width.ToString()+"x"+Screen.PrimaryScreen.Bounds.Height.ToString()
+"\n"+SystemInformation.VirtualScreen.Width.ToString()+"x"+SystemInformation.VirtualScreen.Height.ToString());

returns



1280x720
1280x720
1280x720
1280x720

I am using Visual C# express 2010... Might try to install Visual C# express 2012


I tried Form.Maximum size and it had the same output


Thanks for the responses so far. I will keep posted if I find anything out.


No comments:

Post a Comment