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 / Languages / C# / November 2007

Tip: Looking for answers? Try searching our database.

MDI Child form Question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alij - 20 Nov 2007 17:01 GMT
Hi,

I have an MDI form with one child form (called firstform), which has a
button. The button creates a new instance of a form(called secondform) with
a button on it also, and this new form is also set to be an MDI child.

When the button on the first form is clicked, the second form is initialized
and called with secondform.show() method. At the same time, I want to hide
the firstform by using firstform.hide(). All this works fine. The problem I
am having is: When the second form button is clicked, I want to show back
the firstform. How do I get a handle of the instance of the first form so I
can use this?

Looking forward to any help/pointers.

Thanks!
Alij
zacks@construction-imaging.com - 20 Nov 2007 19:01 GMT
> Hi,
>
[quoted text clipped - 13 lines]
> Thanks!
> Alij

Each MDI child form has a Parent property which is the child form's
parent.

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.