By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,432 Members | 795 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,432 IT Pros & Developers. It's quick & easy.

Programmatically Maximize screen

P: n/a
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
Feb 15 '08 #1
Share this Question
Share on Google+
3 Replies


P: n/a
"BobAchgill" <Bo********@discussions.microsoft.comschrieb:
>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?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Feb 15 '08 #2

P: n/a
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 [MVP]" wrote:
"BobAchgill" <Bo********@discussions.microsoft.comschrieb:
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?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Feb 15 '08 #3

P: n/a


"Herfried K. Wagner [MVP]" <hi***************@gmx.atwrote in message
news:OO**************@TK2MSFTNGP03.phx.gbl...
"BobAchgill" <Bo********@discussions.microsoft.comschrieb:
>>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?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Hmm, if you can maximize a form/screen, Herfried, can you show me how to
maximize a monitor from 17" to 32"?

:P

Mythran
Feb 15 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.