0

Hello - I am using Visual Studio .net 2008. I have a form that has a tabpage control in it with 5 pages. I need to add another page, but in position 2, not at the end. Is this possible? I do not see any settings for the position of the page. Looks like I can only add one at the end.

Any help is much appreciated! Thanks!

2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by bklynman01
0

Insert it where ever you want.

Dim NewTabPage As New TabPage
TabControl1.TabPages.Insert(0, NewTabPage)
0

I tried, and your method works also. I did find though, that in the TabControl Properties (not the tabpage properties) that you can set the order of the pages.

Thanks though!!

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.