G
GatorBait
Hi everyone:
I have a form that has a tab control on it with 4 pages. There is a
lot of code behind each page as well as many controls on each page so I
decided to make each indidvidual page a seperate form, for organization
purposes. I am getting an error when I try to add the form to the tab
control. The error message tells me that the form cannot be converted
to type tabpage. Here is the code I am using:
Dim frm as new Form1
tabMain.TabPages.Add(frm)
Does anyone have any ideas?
I should also mention that I am still pretty new to VB.NET so I wanted
to ask if I am doing this the proper way. Is there a different
methodology that I should be following?
Thank you in advance for your insight!
I have a form that has a tab control on it with 4 pages. There is a
lot of code behind each page as well as many controls on each page so I
decided to make each indidvidual page a seperate form, for organization
purposes. I am getting an error when I try to add the form to the tab
control. The error message tells me that the form cannot be converted
to type tabpage. Here is the code I am using:
Dim frm as new Form1
tabMain.TabPages.Add(frm)
Does anyone have any ideas?
I should also mention that I am still pretty new to VB.NET so I wanted
to ask if I am doing this the proper way. Is there a different
methodology that I should be following?
Thank you in advance for your insight!