G
GatorBait
Hi everyone,
I have a tabcontrol on a form that contains 4 tabs. I want to make
each tab a seperate form because there is a great deal of code behind
each page, and organizationally it was easier to have each one
seperate. My idea was to just add and remove each form as necessary
based on what page the user clicked on, but I am getting an error when
I try to add the form as a tabpage:
Dim frm as new Form1
Me.tabMain.TabPages.Add(frm)
It is telling me that type form cannot be converted to type TabPage.
Any ideas???
Also, I'm still relatively new to vb.net, so I should also pose the
question: Am I doing this the proper way, or should I be doing this in
a different manner?
Thank you in advance for your insight!
I have a tabcontrol on a form that contains 4 tabs. I want to make
each tab a seperate form because there is a great deal of code behind
each page, and organizationally it was easier to have each one
seperate. My idea was to just add and remove each form as necessary
based on what page the user clicked on, but I am getting an error when
I try to add the form as a tabpage:
Dim frm as new Form1
Me.tabMain.TabPages.Add(frm)
It is telling me that type form cannot be converted to type TabPage.
Any ideas???
Also, I'm still relatively new to vb.net, so I should also pose the
question: Am I doing this the proper way, or should I be doing this in
a different manner?
Thank you in advance for your insight!