Hai,
I want to open a new form while the previous form is
hiding or closing.
I tried this with using MDI.I created one form like
ParentForm.placed one button control.when clicked one that
it opend new form like ChildForm.When i set the property of
ChildForm to Maximize,but the ParentForm button control
also appearing on the childform.
so plz help me how to hide parentform controls(hide
parentform while it is childform opened)

thanq..

Answer Posted / kishor

Before using the show method to open the child form
set the visible property of the Button on the mdi form to false.

when to will close the child form first check the the mdi
form contains any child form by using 'MdiChildren.Length'
property if it is zero set the Visible property of the
button to true

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a class have more than 1 destructor?

511


What is access specifier in c#?

565


What is wpf application in c#?

460


What is eager loading in c#?

465


What is appdomain in c#?

482






What are the basics of c#?

551


How do destructors and garbage collection work in c#?

530


What are nested classes in c#?

552


What is meant by generics in c#?

498


Can partial class be inherited?

501


What is the difference between system.text.stringbuilder and system.string?

528


What is the .net datatype that allows the retrieval of data by a unique key?

454


How does dependency injection work c#?

496


What is byte c#?

443


what are the different ways a method can be overloaded?

518