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

How to minimize with code all de childforms in the parentform

Hi,

How to minimize with code all de childforms in the parentform.
I want to put a menuitem with text "MInimize all" in a parent form to
minimize all the child forms in the parent form at once.
How to code ?

Nov 20 '05 #1
2 1461
* "andreas" <an*****@pandora.be> scripsit:
How to minimize with code all de childforms in the parentform.
I want to put a menuitem with text "MInimize all" in a parent form to
minimize all the child forms in the parent form at once.


Untested:

\\\
Dim f As Form
For Each f In Me.MdiChildren
f.WindowState = FormWindowState.Minimized
Next f
///

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2
Hi,

Dim frm As Form
For Each frm In Me.MdiChildren
frm.WindowState = FormWindowState.Minimized
Next

Ken
-------------------

"andreas" <an*****@pandora.be> wrote in message
news:GS**********************@phobos.telenet-ops.be:
Hi,

How to minimize with code all de childforms in the parentform.
I want to put a menuitem with text "MInimize all" in a parent form to
minimize all the child forms in the parent form at once.
How to code ?


--
Outgoing mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.230 / Virus Database: 263.3.3 - Release Date: 6/18/2004
Nov 20 '05 #3

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

Similar topics

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...
2
by: Tony Ciconte | last post by:
I cannot seem to find the VBA code that will minimize the whole Access apllication. The instruction... "Application.DoCmd.Minimize" seems to only minimize the active screen. What I need is a VBA...
4
by: Jason Huang | last post by:
Hi, In my ASP.Net C# Windows Form project, I have 2 forms, FormParent and FormChild. I have a Button1_Click event in FormParent, and the codes are: private void Button1_Click(object sender,...
4
by: sympatico | last post by:
hello to all i got some problem with child forms in my vb.net application. in my application i need to maximize some child forms when they are loaded (set the windowstate to maximized at design...
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...
3
by: Anil | last post by:
How same functionality can be given to mulitiple forms in a VB.Net project? e.g. Suppose on each form, toolbar is present. If we click on New button then Add, Edit button gets disabled and Save,...
1
by: zakhirn | last post by:
Anyone have code that creates a button that will Minimize Excel to the system tray. I do not need anything complicated like changing the minimize button or the close button to a minimize to...
4
by: EmilH | last post by:
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. ...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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:
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
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...

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.