473,951 Members | 15,717 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1485
* "andreas" <an*****@pandor a.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*****@pandor a.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
2612
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 automatically. I tried some way to call frmMain.WindowState = FormWindowState.Minimized. The result is my 2 forms are minimized but the side effect is the Child form is gone. Dim f As New frmChild f.ShowDialog()
2
13575
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 code equivalent of the action when you click the minimize ("-") button at the very top right of the Access screen. Any help is greatly appreciated. TC
4
12298
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, System.EventArgs e) { FormChild MyFormChild=new FormChild(); MyFormChild.ParentForm=this;
4
1216
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 time). if i do so then, the next form opened which is not be maximized and the windowstate is also set to "normal" at design time also getting maximized (awwwwww it sucks). why this happens so ?. (i guess its setting the prev. forms window...
3
5449
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 remains visible (albeit completely disabled).
3
1188
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, Cancel button is enabled. If we click on Save button, records gets saved. In short how the generelized code can be written?
1
2867
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 tray button. I have a Form that pops up when excel loads, and I will add a command button called Minimize that I just want to minimize excel to the system tray.
4
13474
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. Thanks in advance. Emil.
5
10791
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 server. Now, every console program instance will open a command mode window and they occupy the whole screen. I want to minimize all of them and maximize it if neccessary by manual. Is it possible and how to do it? I'm using VB.NET 2005. ...
0
11607
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
11203
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10704
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
9913
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
8277
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
6237
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6360
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4558
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3565
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.