473,748 Members | 9,641 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Programmaticall y Maximize screen

I give my user a button to change the properties of the size property of
maximize screen size. How can I programmaticall y 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 4459
"BobAchgill " <Bo********@dis cussions.micros oft.comschrieb:
>I give my user a button to change the properties of the size property of
maximize screen size. How can I programmaticall y 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********@dis cussions.micros oft.comschrieb:
I give my user a button to change the properties of the size property of
maximize screen size. How can I programmaticall y 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******** ******@TK2MSFTN GP03.phx.gbl...
"BobAchgill " <Bo********@dis cussions.micros oft.comschrieb:
>>I give my user a button to change the properties of the size property of
maximize screen size. How can I programmaticall y 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
8899
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. window.open('index.jsp',myform.target,'toolbar=no,menubar=no,resizable=yes,scrollbars=yes,width=800,height=600'); Any ideas? please help. thanks!!
7
5474
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 = oPPT.ActivePresentation oPPT.WindowState = ppWindowMinimized Then I do the copy and paste part: With oPres
4
6845
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 taskbar. Is there a way to maximize the form so that a portion of it is not hidden under the taskbar? thanks, lq
6
19641
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 in advance Thomas
1
2641
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 under Windows XP with the theme mode set to Windows Classic (disabling the newer XP theme) at a resolution of 1280 x 1024 on a dual monitor system. The application has two sizes; one is roughly 800 x 600, and the second is full maximize mode. It...
3
4501
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, Minimizebox and ControlBox set to false and WindowState = Maximized when the form displays it displays with the same size as in the Form Designer
5
3203
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 the start bar? Thx Mrozu
2
2027
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
2279
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, screen.height); </script> Please let me know if there is any other method to maximize web form that give same effect like clicking maximize button on browser.
0
8989
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8828
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9319
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9243
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8241
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6795
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6073
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4869
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3309
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.