473,326 Members | 2,175 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,326 software developers and data experts.

MDI child forms minimize all?

al
Greetings,

What is the method to use to get all MDI child forms to minimize.
That is, if there are four open MDI child forms, how can I have them
all minimized in one method call?

MTIA,
Grawsha
Nov 20 '05 #1
3 3779
You could loop through the MDI Children:
For Each form As Form In Me.MdiChildren
form.WindowState = FormWindowState.Minimized
Next

--
Greetz,
Jan
__________________________________
Read my weblog: http://weblogs.asp.net/jan
"al" <gr*********@yahoo.com> schreef in bericht
news:66**************************@posting.google.c om...
Greetings,

What is the method to use to get all MDI child forms to minimize.
That is, if there are four open MDI child forms, how can I have them
all minimized in one method call?

MTIA,
Grawsha

Nov 20 '05 #2
"al" <gr*********@yahoo.com> schrieb
Greetings,

What is the method to use to get all MDI child forms to minimize.
That is, if there are four open MDI child forms, how can I have
them all minimized in one method call?


dim f as form

for each f in me.mdichildren
f.windowstate = FormWindowState.Minimized
next
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html
Nov 20 '05 #3
* gr*********@yahoo.com (al) scripsit:
What is the method to use to get all MDI child forms to minimize.
That is, if there are four open MDI child forms, how can I have them
all minimized in one method call?


\\\
Public Sub MinimizeAllChildren()
Dim f As Form
For Each f In Me.MdiChildren
f.WindowState = FormWindowState.Minimized
Next f
End Sub
///

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #4

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

Similar topics

0
by: Manoj | last post by:
Hi All, We have an VB.net application which has 31 projects in one solution.In this we want to disable the Maximize and minimize buttons of the child forms as they load in the main MDI.We have...
0
by: Joe | last post by:
Hello, I have an application in which a few mdi child forms are inside of an mdi parent. My problem arises when you minimize these forms. I want them to be hidden when minimized and not docked...
0
by: Tai | last post by:
Hi all I have 2 forms, frmMain and frmChild. In frmMain, I declare a variable f as frmChid then Call f.ShowDialog() I want when the child form is minimized, the Main form is also minimized...
2
by: Tai | last post by:
Hi all I have 2 forms, frmMain and frmChild. In frmMain, I declare a variable f as frmChid then Call f.ShowDialog() I want when the child form is minimized, the Main form is also minimized...
1
by: VMI | last post by:
How can I add a small "Please wait..." form to a child form so that when I minimize the child form, the "Please Wait..." form will also disappear? This form will be displayed when the child form is...
4
by: Bernie Yaeger | last post by:
I'm opening an mdi child form maximized. I've set the controlbox to false, the maximize button to false, the minimize button to false. Nevertheless, when the child form opens, it has a minimize,...
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...
0
by: =?Utf-8?B?ZGV0cml1czY3?= | last post by:
I'm having a problem in C# (visual studio 2005) concerning minimising parent and child forms. I need to be able to handle the minimise event for the child and tell the parent to minimise at the...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.