Programmatically Maximize screen

  • Thread starter Thread starter BobAchgill
  • Start date Start date
B

BobAchgill

I give my user a button to change the properties of the size property of
maximize screen size. How can I programmatically cause the maximize screen
function to happen after changing the property so the new max screen property
will be realized? Right now I have to tell the user to unmaximize the screen
and remaximize the screen to have the property take effect. :o(

Thanks!

Bob
 
BobAchgill said:
I give my user a button to change the properties of the size property of
maximize screen size. How can I programmatically cause the maximize
screen
function

I am not sure if I understand your question. You can set the form's
'WindowState' property to maximize a form. However, which "screen" do you
want to maximize?
 
I am only using the default Form1.

OK. I tried this...
Me.WindowState = FormWindowState.Normal
Me.WindowState = FormWindowState.Maximized

I had to do the normal 1st followed by the max to get my new property for
max screen size to take effect. Going back to normal then back to Max
visually is not really very clean way to do it because it causes the Form to
bounce around while it is changing back to normal then back to max.

Is there a way just to cause the already max screen to refresh using my new
max screen size without going back to Normal and back again to Max?

Almost there!

Thank you!

Bob
 
Herfried K. Wagner said:
I am not sure if I understand your question. You can set the form's
'WindowState' property to maximize a form. However, which "screen" do you
want to maximize?

Hmm, if you can maximize a form/screen, Herfried, can you show me how to
maximize a monitor from 17" to 32"?

:P

Mythran
 
Back
Top