emaduddeen
Programmer
Hi Everyone,
I would like to get the index number of a tab collection when the user clicks on a tab. I already have a click event in place.
Here is what I tried so far:
This is almost what I am looking for but I need a way to change the (1) to whatever index number is returned when the user clicks on a tab.
Thanks.
Truly,
Emad
I would like to get the index number of a tab collection when the user clicks on a tab. I already have a click event in place.
Here is what I tried so far:
Code:
Private Sub Ribbon1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Ribbon1.Click
MessageBox.Show("You clicked on:" & Ribbon1.Tabs.Item(1).ToString)
End Sub
This is almost what I am looking for but I need a way to change the (1) to whatever index number is returned when the user clicks on a tab.
Thanks.
Truly,
Emad