I am using a For Each loop:
For Each tab As TabPage in TabControl1.TabPages
I cannot retrieve the index of tab. Is there a way to do this? I am trying to see if the index is below or above the current index.
You can use the method IndexOf of the TabPageCollection to get the Index of a Tab.
Dim indexOfTab As Integer = TabControl1.TabPages.IndexOf(tab)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With