Treeview Control in VB.Net 2005

  • Thread starter Thread starter Guest
  • Start date Start date
Sean said:
Knowing the Tag of a TabPage; how do I get the index of the page?
Your question has nothing to do with th eTreeView control but in any
case... you have to loop thru tab pages and compare Tag property with
the one you know.
 
Sorry, It's the Tab control.

VB.Net changes the order of Tab Pages. I loop through each page and compare
the Tag. When the Tag matches, I need to return the index of that TabPage but
I don't know how to return the index of it.
 
[TabControl].TabPages(IndexOf([TabPage]))

As a matter of interest, why are you using the Tag property to Identify the
tabpage?

If it's just because the tabs have been shuffled about then you may like to
try my new TabPageSorter component which will rearrange the tabs in any
order you want. It is brand new this week so it may have some cool features
that I haven't discovered yet (AKA bugs) but it should be safe to use ;-)
http://www.dotnetrix.co.uk/controls.html
 
Back
Top