473,779 Members | 2,083 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 4103
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
3373
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
11144
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
23511
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
5435
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
1664
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
1841
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
1645
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
2628
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
4087
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
3324
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
9636
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9474
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
10306
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...
1
10075
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
8961
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...
0
6727
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
5373
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
5504
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3632
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.