Why does my Tabhost do this?

o0spyder0o

Member
Licensed User
Longtime User
I can't figure out why I get this bar showing through all my tabbed pages, see attached.

Each tab shows the same bar.
I added the tabs like this:

tabmain.AddTab("page1","page1")
tabmain.AddTab("page2","page2")
tabmain.AddTab("page3","page3")
tabmain.AddTab("page4","page4")

...and in the designer each page was created and saved (just a different colour for each one) as page1, page2 and so on. I tried different tab names and no joy.
I'm doing it wrong, but what exactly?

Cheers
 

Attachments

  • tabhost problem.png
    tabhost problem.png
    11.8 KB · Views: 199

o0spyder0o

Member
Licensed User
Longtime User
Thank you for doing that. After comparing mine to yours I concluded that I was creating the other pages from the main tabhost page which gave me the layouts. I should have gone 'File-New' instead.
By selecting my pages and choosing 'Tools-Remove Selected Views' on each one, everything looks like it should.
Have a good one.

Cheers
 
Upvote 0
Top