473,386 Members | 1,830 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,386 software developers and data experts.

Minimize/Maximize

Hi,

Can anybody show me how to minimize/maximize a window dynamically? I placed
buttons for each of these commands and want to place the code which will
minimize and maximize the window.

Thanks in advance.
Emil.
Apr 18 '07 #1
4 13432
e.g.
someForm.WindowState = FormWindowState.Maximized;

That do?

Marc

Apr 18 '07 #2
Hi EmilH,

Use the .WindowState property of a Form:

this.WindowState = FormWindowState.Maximized; (to maximize the Form)
this.WindowState = FormWindowState.Minimized; (to minimize)
this.WindowState = FormWindowState.Normal; (for back to normal)

WBR, Alex Meleta
Blog: http://devkids.blogspot.com

-----Original Message-----
From: EmilH [mailto:em*****@yahoo.com]
Posted At: Mittwoch, 18. April 2007 09:10
Posted To: microsoft.public.dotnet.languages.csharp
Conversation: Minimize/Maximize
Subject: Minimize/Maximize

Hi,

Can anybody show me how to minimize/maximize a window dynamically? I
placed
buttons for each of these commands and want to place the code which will

minimize and maximize the window.

Thanks in advance.
Emil.
Apr 18 '07 #3
Thanks a lot!

"Alex Meleta" <am*****@gmail.comwrote in message
news:A4C74B969FF1490BBAAEBCCDF6064E77@ALexPC...
Hi EmilH,

Use the .WindowState property of a Form:

this.WindowState = FormWindowState.Maximized; (to maximize the Form)
this.WindowState = FormWindowState.Minimized; (to minimize)
this.WindowState = FormWindowState.Normal; (for back to normal)

WBR, Alex Meleta
Blog: http://devkids.blogspot.com

-----Original Message-----
From: EmilH [mailto:em*****@yahoo.com]
Posted At: Mittwoch, 18. April 2007 09:10
Posted To: microsoft.public.dotnet.languages.csharp
Conversation: Minimize/Maximize
Subject: Minimize/Maximize

Hi,

Can anybody show me how to minimize/maximize a window dynamically? I
placed
buttons for each of these commands and want to place the code which will

minimize and maximize the window.

Thanks in advance.
Emil.


Apr 18 '07 #4
Thanks, Marc!

"Marc Gravell" <ma**********@gmail.comwrote in message
news:11*********************@n59g2000hsh.googlegro ups.com...
e.g.
someForm.WindowState = FormWindowState.Maximized;

That do?

Marc

Apr 18 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Bhargavan | last post by:
Hey Group, When I minimize and then maximize a form (in windows application), I see a significant drop in memory usuage in the task manager. I tried to do the same thing programatically during the...
3
by: Paul Welter | last post by:
I'm building a MDI application that has child forms. I'm trying to find a way to hide the inner boarder of the child frame area. Setting the FormBoarderStyle of the child form has no effect. ...
0
by: Bill | last post by:
Hi I have a parent child forms. I want the close, maximize, and minimize buttons to be removed. One the child form I have set the maximize and minimize buttons to false. I have the child form...
3
by: Don | last post by:
If you have a form that calls another form via the following code: Dim myForm as Form2 myForm = New Form2 myForm.Owner = Me MyForm.ShowDialog and you minimize the second form, the first form...
2
by: jj | last post by:
I have a single threaded application in c# that scans through a file system. While doing this if I try to minimize, maximize buttons on the top,right hand corner of my form do not do as they are...
4
by: Linda | last post by:
My environment is Windows Server 2003, .NET Visual Studio Academic 2003, ASP.NET. I need to create a page with no top title bar, no mimize button, no maximize button, no close button. It is for a...
5
by: David Jackson | last post by:
Hello, I have a WinForms app (VS.NET 2005 + SP1) where the FormBorderStyle of the main form is set to FixedDialog. I've added a NotifyIcon, so have set the form's MinimizeBox property to...
5
by: =?Utf-8?B?SmFtZXMgV29uZw==?= | last post by:
Dear all, I'd like to know if there is any method to minimize command mode window when a console program is running. In my case, there are several console programs which run periodically in...
0
by: =?Utf-8?B?Ym9hdGFibGU=?= | last post by:
Some of my shortcuts that use to allow my to left click properties run: minimize/maximize do nothing. They allow me to change to but after change minimize/maximize behavior does not change. They...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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,...
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...

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.