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 / .NET Framework / New Users / May 2004

Tip: Looking for answers? Try searching our database.

Controlling MDIChild forms

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Paulo - 20 May 2004 16:31 GMT
Hi

I kind of a new programmer. I started a few wees ago with Visual Basic .NET and I'm trying to develop a simple (I think) application with an MDIForm and an MDIChild. Thus, I open the Child form and it works fine but, when I close, using the close button (X) on the upper-right corner of its window, I can´t mange to catch this event on the MDI Parent form, so I can redefine the MDI Form main menu again (show & hide some options)
Can someone tell me a way so that the MDI Parent form knows when its child form has been closed (with the close button on the upper-right)

Thank

Paulo
Marc Butenko - 20 May 2004 16:43 GMT
One way to do what you want is to catch the Closing event in the MDIChild
form and have that call a method in the MDIParent to make the necessary
modifications...

Signature

Marc Butenko
mbutenko@bresnan.net

> Hi,
>
> I kind of a new programmer. I started a few wees ago with Visual Basic .NET and I'm trying to develop a simple (I think) application with an
MDIForm and an MDIChild. Thus, I open the Child form and it works fine but,
when I close, using the close button (X) on the upper-right corner of its
window, I can?t mange to catch this event on the MDI Parent form, so I can
redefine the MDI Form main menu again (show & hide some options).
> Can someone tell me a way so that the MDI Parent form knows when its child form has been closed (with the close button on the upper-right)?
>
> Thanks
>
> Paulo

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.