calling other forms
-
Hello , I have three forms FOrm1 , Form2, Form3 , i want to be able to go back to previous forms from current form . I have called Form1 using Form1->show(); method from Form2, i get error messages stating form1 is an undeclared identifier. If i try to include form1 on form2 , i get series of errors . I'm using the VC++ 2005 can someone help with this?:confused: de
-
Hello , I have three forms FOrm1 , Form2, Form3 , i want to be able to go back to previous forms from current form . I have called Form1 using Form1->show(); method from Form2, i get error messages stating form1 is an undeclared identifier. If i try to include form1 on form2 , i get series of errors . I'm using the VC++ 2005 can someone help with this?:confused: de
Hi, If you are referring to Windows Forms, you have to create an object of the form before calling it. Example: Create an object of Form1 in Form2 and call objForm1.Show(); But you will get a new instance of that form. If you want to go back and forth like in a web browser, you got to use usercontrols. Just use one form, and load the other forms inside this form. For this you need to have a master form and make usercontrols for other forms. There is a UserControl Class available in .NET controls, you can find it when you try to add a new component from with in a Project. Regards, Blumen