Afternoon everyone,
My problem is thus: I am trying to return a tabpage but no matter what I rty I can't get it to work. I return the name of the TabPage but when it displays, it only shows the name and not the actual contents of the page.
I am trying the following code
TabControl1.TabPages.Add(nameOfPage)
Can anyone help me out with this please?
Thanks,
Col
AlanPosted Dec 12, 2007, 10:58 AM
Are you sure that you're adding the TabPage object and not just its title to the TabPages collection? For example:
Dim myTabPage As New TabPage()
myTabPage.Text = "TabPage" & (TabControl1.TabPages.Count + 1)
TabControl1.TabPages.Add(myTabPage)