473,847 Members | 1,489 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to minimize the parent window when the child window gets minimized?

Hi,

I am opening a dialog box (which is also a form) after clicking a button
in the main form using ".ShowDialog(th is)". There is a minimize button for
the opened dialog box(form). I want to minimize the parent form when my
child form gets minimized. How to do this?

Please let me know as early as possible

--
Bye For Now,
Chandu.

Nov 15 '05 #1
3 4107
I think there is a property called Parent and it allows you access to the
parents methods. You should be able to launch an event from that some how.
"Nagachandr a Sekhar Grandhi" <gn*****@hotmai l.com> wrote in message
news:#h******** ******@TK2MSFTN GP12.phx.gbl...
Hi,

I am opening a dialog box (which is also a form) after clicking a button in the main form using ".ShowDialog(th is)". There is a minimize button for
the opened dialog box(form). I want to minimize the parent form when my
child form gets minimized. How to do this?

Please let me know as early as possible

--
Bye For Now,
Chandu.

Nov 15 '05 #2

"Nick" <ne**@zigamorph .com> wrote in message
news:OT******** ******@TK2MSFTN GP11.phx.gbl...
I think there is a property called Parent and it allows you access to the
parents methods. You should be able to launch an event from that some how. "Nagachandr a Sekhar Grandhi" <gn*****@hotmai l.com> wrote in message
news:#h******** ******@TK2MSFTN GP12.phx.gbl...
Hi,

I am opening a dialog box (which is also a form) after clicking a

button
in the main form using ".ShowDialog(th is)". There is a minimize button for the opened dialog box(form). I want to minimize the parent form when my
child form gets minimized. How to do this?

Please let me know as early as possible

--
Bye For Now,
Chandu.


Nov 15 '05 #3
Sorry..I forgot to enter the comments.

Nick,

Is there any other way to do this without accessing the parent object
properties??

-chandu.
"Nagachandr a Sekhar Grandhi" <gn*****@hotmai l.com> wrote in message
news:ej******** ******@TK2MSFTN GP10.phx.gbl...

"Nick" <ne**@zigamorph .com> wrote in message
news:OT******** ******@TK2MSFTN GP11.phx.gbl...
I think there is a property called Parent and it allows you access to the
parents methods. You should be able to launch an event from that some

how.
"Nagachandr a Sekhar Grandhi" <gn*****@hotmai l.com> wrote in message
news:#h******** ******@TK2MSFTN GP12.phx.gbl...
Hi,

I am opening a dialog box (which is also a form) after clicking a

button
in the main form using ".ShowDialog(th is)". There is a minimize button

for the opened dialog box(form). I want to minimize the parent form when my child form gets minimized. How to do this?

Please let me know as early as possible

--
Bye For Now,
Chandu.



Nov 15 '05 #4

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

Similar topics

1
3376
by: gopal srinivasan | last post by:
I need to know how to close a parent modal window when child modal window opens, also i need to know the syntax for writing document on the modal window on the fly, like what we do in case of normal window. Actually, I tried to close the parent window from the child modal window using parent.close syntax in onload event in child modal window. It actually closes the parent modal window, but the child modal window is not opened, why it is...
6
11147
by: harvie wang | last post by:
Hi, How to send a message to every window(include child window), I use SendMessage ,but It can't do that. class frmA { public const int WM_test = 0x400 + 1; protected override void WndProc(ref Message m) {
2
23517
by: Raj | last post by:
Hi All, I have a problem with trying to refresh the parent window from child window in order to update data in the parent window. The sequence of events are 1) I click a button in the parent window to open a child window thru javascript window.open 2) I have some functionality in the child window that changes the data
3
5443
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).
2
1667
by: =?Utf-8?B?c29uaWNt?= | last post by:
Can anyone tell me how an MDI parent can fire an event that the child window can pick up? We have a MDI parent window containing 2 child windows (named 1 and 2). Child window 2 updates and fires an event to say it has updated that the main MDI parent can pick up on. I cannot find a way for the MDI parent to say to Child window 1 that Child Window 2 has been updated? Any help would be appreciated? Thanks
1
1842
by: vidhyapriya | last post by:
when i minimize child window the parent window should be minimize...how it possible..i need code in vb.net anyone tell me
2
1647
by: vidhyapriya | last post by:
is it possible to deactivate parent window form when child window form active if so,can u give some idea or coding about this....i m using vb.net window appln
1
2646
by: bhargavi ramineni | last post by:
I have used the following javascript code to get a child window for parent window. childWin =window.open(url,"window","top=250,left=250,height=100,width=480,status=no,toolbar=no,menubar=no,location=no"); As the child window is not a modal dialog, user can minimize the window and do other actions in parent window. Please help me to avoid that. Even if the child window is minimized, when user tries to do some action in parent window, ...
1
4089
by: mia888 | last post by:
Hi All Any help will be much appreciated... Not sure if this is possible but i'll ask the question anyway... I have a parent window which opens a child window. However, upon closing I would like to pass the value from the child window to the parent window... I know that you can use: window.opener.<parent window>.value = watever in the child window... But I want the parent window to get the value from the child window rather than...
1
3327
by: kingfly2000 | last post by:
I have a probelm about creating DIV in parent window from child window. following code works find in IE8, but it does not work in IE7 and 6 aaa.html <html> <head> <title>aaa</title> </head> <body> <iframe src=bbb.html height=0 width=0></iframe>
0
9734
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10653
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...
1
10718
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10347
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
9490
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
7888
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
7061
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5915
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4540
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.