problem with form positioning...

ashgopal2000

Member
Joined
Jun 24, 2005
Messages
12
Programming Experience
1-3
Hi everybody,

When I click the resize button of a VB.NET window form, instead of resizing, it partially goes out of screen.

Is there any way to set the bounds of the form within the screen.

Thanks.
 
You set the form's Height and Width properties to adjust its Size and its Top and Left properties to adjust its Location. To determine whether you need to relocate a form when resizing to keep it on the screen, you would need the dimensions of the screen. I believe that there is at least one other way to do this that escapes me right now, but you can get the screen dimensions using the Screen class.
 
Back
Top