473,395 Members | 1,658 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Programmatically Maximize screen

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
3 4433
"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
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


"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: jrefactors | last post by:
I want to maximize the browser window when I open a new window. Now I do the following, but different monitor size will yield different width and height values. ...
7
by: Colleyville Alan | last post by:
I have an app that uses Access to grab various PowerPoint slides using the followhyperlink command. I have set the PPT window to run in a minimized state: FollowHyperlink link Set oPres =...
4
by: lauren quantrell | last post by:
I have an Access 2K popup form to which I have added buttons to run DoCmd.Maximize The problem is the form opens full height on the screen, with the bottom of the form hidden under the Windows...
6
by: Thomas | last post by:
I can set the maximizeBox property. But I didn't find a method to maximize a MDI child form. So I must do a duoble click at the maximize box. Anybody know a maximize function or method? Thank...
1
by: Brandon | last post by:
Hello there. I'm currently working on a moderately complex Visual C# windows application that I have run into a bit of a problem on. To start things off, the application has normally been run...
3
by: guy | last post by:
VB2005 I have an MDI application, which displays modal forms correctly, and starts up with the MDI form maximized however for non modal forms behavious is unusual all forms have MaximizeBox,...
5
by: Mrozu | last post by:
Hi When I maximize a form in VB.Net 2003 the bottom of the form gets hidden by the start bar (so my status bar is invisible). How can I get my app to maximize to the usable screen area above...
2
by: mac | last post by:
Hi! Is there anyone knows on how to maximze the Web form during run time? please help me to the code of what im going to do with this. Thanks and Best Regards
2
by: rannajeesharma | last post by:
i got the following code from the forums but it not give the same effect like clicking maximize button <script language="javascript"> window.moveTo(0,0); window.resizeTo(screen.width,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.