Hi all,
i need to navigate from one form to another form...if i use the following code its nt working:
Form Form1 = new Form();
Form1.Show();
actully this is opening a new form without any name(a blank form) but i need to goto another form named Form1 which performs some other operations. help me out..thanks in advance.
Loading
amala veerasamyPosted Feb 22, 2007, 1:33 AM
Form2 form_obj = new Form2();
form_obj.Show();
}
this works good...my fault was before i instantiated a new form object..so its opening a new blank form not Form2..
thank you.
WillPosted Feb 21, 2007, 9:37 AM
If I want to display another form, such as an options dialog I would do the following:
(May not be the best way, but it works)
Name_Of_Form my_Form = new Name_Of_Form();
my_Form.ShowDialog();
Remember the two classes must exist in the same namespace!
Good luck