473,498 Members | 1,074 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problems with Minimizing Forms

Don
I have a form that displays a second form modally (via ShowDialog). When
the second form gets minimized, how do you get the parent form to minimize,
too?

- Don
Nov 21 '05 #1
3 1240
Don,

Before showing the second form modally, make the first form the owner of the
second form:

Dim f As New Form2()

f.Owner = Me
f.ShowDialog()

Kerry Moorman
"Don" wrote:
I have a form that displays a second form modally (via ShowDialog). When
the second form gets minimized, how do you get the parent form to minimize,
too?

- Don

Nov 21 '05 #2
Don
That doesn't work. :-(

Maybe this has something to do with the fact that the method containing this
code is in a module and not a form? I gave the method a parameter via which
a form can pass a reference to itself, and this reference is then set to be
the owner of the new form, so it's doing exactly the same thing you
specified, in essence. However, it just doesn't seem to want to work.

- Don
"Kerry Moorman" <Ke**********@discussions.microsoft.com> wrote in message
news:FC**********************************@microsof t.com...
Don,

Before showing the second form modally, make the first form the owner of
the
second form:

Dim f As New Form2()

f.Owner = Me
f.ShowDialog()

Kerry Moorman
"Don" wrote:
I have a form that displays a second form modally (via ShowDialog). When
the second form gets minimized, how do you get the parent form to
minimize,
too?

Nov 21 '05 #3
Don
Hmmm... After further testing, this does not appear to work when called
directly from a form, either.

There's got to be some way to do this. I know it worked properly in VB6...

- Don
"Don" <un*****@oblivion.com> wrote in message
news:QBFRe.346847$5V4.81767@pd7tw3no...
That doesn't work. :-(

Maybe this has something to do with the fact that the method containing
this code is in a module and not a form? I gave the method a parameter
via which a form can pass a reference to itself, and this reference is
then set to be the owner of the new form, so it's doing exactly the same
thing you specified, in essence. However, it just doesn't seem to want to
work.

- Don
"Kerry Moorman" <Ke**********@discussions.microsoft.com> wrote in message
news:FC**********************************@microsof t.com...
Don,

Before showing the second form modally, make the first form the owner of
the
second form:

Dim f As New Form2()

f.Owner = Me
f.ShowDialog()

Kerry Moorman
"Don" wrote:
I have a form that displays a second form modally (via ShowDialog).
When
the second form gets minimized, how do you get the parent form to
minimize,
too?


Nov 21 '05 #4

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

Similar topics

13
1948
by: nospam | last post by:
NEWS.COM Amazon wins patent for ordering forms # 6,615,226 http://tinyurl.com/m7v8 http://news.com.com/2100-1017-5070569.html In its latest patent, the online retailing giant outlined a...
3
1673
by: Peter | last post by:
I have a dll written in VB6 that exposes a form. The dll is called from VBA in an Access 2000 application. I need to get the form to minimize when the user minimizes the Access application...
3
4917
by: Chris | last post by:
Modal forms are great for locking the user out of non focused forms allowing tight control over program flow, but they have one side effect which user find very irritating i.e. Access cannot be...
13
1344
by: Nathan | last post by:
Hello again, I have an application with three forms. Frm1 has a button whose click event calls frm2 -- frm2.ShowDialog(). Frm2 has a button that calls frm3 -- frm3.ShowDialog(). When I...
2
1229
by: Gene | last post by:
I have a program with a couple datasets and a minimum number of controls. The main form is a MDI container. The problem is that when the program loads the memory in the working set shows 49 MB. ...
7
9314
by: Lee | last post by:
Hi, How do I detect when a form is minimizing? specifically when a user clicks the show desktop button on the taskbar, rather than the minimize button on a form. thanks in advance
5
3451
by: Scott | last post by:
Hi everyone, I have a c# console app that when run through an autorun.inf file, launches a web page from the CD. It works just fine but I would like the console window minimized on startup....
2
2022
by: Ansu | last post by:
Hello All, Iam a newbie in .NET and i need u r help. My Question is "How to Minimize an Application in C#" I tried using the below code ...
6
2138
by: ebiweb | last post by:
hi all, I have 3 form (Suppose A,B,C) that all are TOPMOST. from Form A i invoke( Run) form B ,and then Run C from B . i need to to minimize the whole project from Form C . but only...
3
1899
by: qazplm114477 | last post by:
Hi, I'm having a tiny problem. I have just started playing around with visual basic a week ago so im fairly new at this. I created a method that saves changes when you click a button, once the button...
0
7124
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
7163
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,...
1
6884
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...
0
7375
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
4586
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...
0
3090
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...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
651
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
287
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...

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.