Problem with MDI forms
-
Hello, I have to made some application in which I'm using MDI forms. Like in first form I have two buttons say button1 and button2, from here I've to navigate to a MDI parent form and in it the child window regarding the respective button clicked should open. I'm struck here as i dont know how to perdorm this action. Can someone help me please... And yes Please give code rather than simple suggestion Thx n regards PARAG
-
Hello, I have to made some application in which I'm using MDI forms. Like in first form I have two buttons say button1 and button2, from here I've to navigate to a MDI parent form and in it the child window regarding the respective button clicked should open. I'm struck here as i dont know how to perdorm this action. Can someone help me please... And yes Please give code rather than simple suggestion Thx n regards PARAG
Hello I don't really think I get you!! Do you mean you want to activate a second MDIchild when a button on the First MDIChild is clicked?
Regards:rose:
-
Hello I don't really think I get you!! Do you mean you want to activate a second MDIchild when a button on the First MDIChild is clicked?
Regards:rose:
Ok take an example I have an initial form a Login form on this form I have labels and text boxes for loginid and Password, and tqo buttons Login(for existing user) and Signup(if new user) now there is an MDI window FORM now if the Login button is clicked then user must enter his home page form in the MDI window FORM, and if SignUp is clicked then SignUp form must open in the same MDI window FORM.......... That is what i want I hope its clear now
-
Ok take an example I have an initial form a Login form on this form I have labels and text boxes for loginid and Password, and tqo buttons Login(for existing user) and Signup(if new user) now there is an MDI window FORM now if the Login button is clicked then user must enter his home page form in the MDI window FORM, and if SignUp is clicked then SignUp form must open in the same MDI window FORM.......... That is what i want I hope its clear now
Why do you want it MDI?? For all I know it's a simple form with a webbrowser control in a Dock.Fill state. The login in dialog is just another form. In your Form_Load event just write
MyLoginForm login = new MyLoginForm();
if(login.ShowDialog() != DialogResult.Cancel)
{
if(login.IsSignUo)
webBrowser1.Navigate(SignUpURL);
else
webBrowser.Navigate(HomePage);
}Regards:rose: