Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / December 2004

Tip: Looking for answers? Try searching our database.

Detect when owned form is brought to front?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JS - 31 Dec 2004 16:01 GMT
Sorry about the last post -- I hit Enter by accident...

I have the following code ('this' is a non-MDI Form):

Form form1 = new Form();
form1.Owner = this;
form1.Show()

Form form2 = new Form();
form2.Owner = this;
form2.Show();

The behavior is that form1 and form2 are sort of child forms of 'this'
form.  When the above code is executed, form2 is in the front, and I'd
like to check when the user clicks on form1 to bring it to the front.
I guess I was assuming that this was the 'GotFocus' event but this does
not work.  Is there a 'ZOrderChange' event, or what is it?

Thanks.
JS - 31 Dec 2004 23:09 GMT
OK -- after trying lots of things I finally got it:  Activated is the
event.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.