CompCop911
Programmer
Hi, I am making a Windows app, and i have different forms, and I was wondering how to switch between them using a menu (menu as in a menu below the title bar, like File, Edit, etc)
I tried the following...
If Me.menuItem2.Checked = True Then
MainForm.Form.Visible = False
Form1.Visible = True
End If
and that gave an error "Form" is not a member of My_Project.MainForm
I tried
If Me.menuItem2.Checked = True Then
MainForm.Visible = False
Form1.Visible = True
End If
Error: Reference to a non-shared member requires an object reference.
I am not sure how to fix these errors, can anyone help?
I understand that even though I want different functions (update profile, contact webmaster, etc) I can have them on the same form in separate Tabpages....well, heres the problem.
I managed to add a TabControl, but I don't know how to add TabPages to it! Can anyone help with that? It may be easier than using the "menu-to-go-to-different-forms" method
I tried the following...
If Me.menuItem2.Checked = True Then
MainForm.Form.Visible = False
Form1.Visible = True
End If
and that gave an error "Form" is not a member of My_Project.MainForm
I tried
If Me.menuItem2.Checked = True Then
MainForm.Visible = False
Form1.Visible = True
End If
Error: Reference to a non-shared member requires an object reference.
I am not sure how to fix these errors, can anyone help?
I understand that even though I want different functions (update profile, contact webmaster, etc) I can have them on the same form in separate Tabpages....well, heres the problem.
I managed to add a TabControl, but I don't know how to add TabPages to it! Can anyone help with that? It may be easier than using the "menu-to-go-to-different-forms" method