المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : 3 forms - how to click button to go to each one



C# Programming
06-06-2009, 05:33 AM
Hello,
I have 3 forms and 1 button on each one. (form1, form2, form3)
how to code the buttons to go to each form.
I know basically I have to create instance of form and also show and hide.
but don't really understand.
I tried writing form2 newOne = new Form2();
newOne.show();
this.hide();
I was able to click button from Form1 to Form2 but that was all - even when tried to modify.
I must be not doing something.
thank you