Screen Position ?

  • Thread starter Thread starter WJ
  • Start date Start date
W

WJ

In c# Windows Form, there are 2 properties: Top and Left. How do I get the
Height & Width that match with those of the screen at run time ? I donot
want to do "Maximize" to cover the whole screen.

Thanks

John
 
WJ said:
In c# Windows Form, there are 2 properties: Top and Left. How do I get the
Height & Width that match with those of the screen at run time ? I donot
want to do "Maximize" to cover the whole screen.

Use Screen.FromControl to get the relevant Screen, and then
Screen.Bounds to get its bounds.
 
Back
Top