B
Bart Schelkens
Hi,
I've created a webusercontrol that contains a tabstrip
(Microsoft.Web.UI.WebControls.TabStrip.
I want to raise the event when the selected index of the tabstrip changes.
I wrote the following code :
Public Event TabIndexChanged(ByVal intSelectedIndex As Int16)
Private Sub TabStrip1_onSelectedIndexChange(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles TabStrip1.SelectedIndexChange
Dim intSelIndex As Integer = (CType(sender,
Microsoft.Web.UI.WebControls.TabStrip)).SelectedIndex
RaiseEvent TabIndexChanged(intSelIndex)
End Sub
The problem is that when I check the value of intSelIndex it always is -1.
What did I do wrong?
Thanks in advance.
I've created a webusercontrol that contains a tabstrip
(Microsoft.Web.UI.WebControls.TabStrip.
I want to raise the event when the selected index of the tabstrip changes.
I wrote the following code :
Public Event TabIndexChanged(ByVal intSelectedIndex As Int16)
Private Sub TabStrip1_onSelectedIndexChange(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles TabStrip1.SelectedIndexChange
Dim intSelIndex As Integer = (CType(sender,
Microsoft.Web.UI.WebControls.TabStrip)).SelectedIndex
RaiseEvent TabIndexChanged(intSelIndex)
End Sub
The problem is that when I check the value of intSelIndex it always is -1.
What did I do wrong?
Thanks in advance.