I have a TabControl with several TabPages. What I am trying to do is as soon as the user clicks on the little tab-thingy specifically (as opposed to anywhere on the TabPage) it should execute some code.
This is what I currently have:
[tt] Private Sub match_orgs_tbpg_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles match_orgs_tbpg.Enter
Button1.Text = "you are here"
End Sub[/tt]
It doesn't work. That code only executes when the user clicks on a WebControl on the TabPage - but I want it to execute as soon as the user selects the TabPage itself.
Is [tt].enter[/tt] the correct EventHandler to use? How can this be done properly?
Thanks so much,
Lazer
This is what I currently have:
[tt] Private Sub match_orgs_tbpg_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles match_orgs_tbpg.Enter
Button1.Text = "you are here"
End Sub[/tt]
It doesn't work. That code only executes when the user clicks on a WebControl on the TabPage - but I want it to execute as soon as the user selects the TabPage itself.
Is [tt].enter[/tt] the correct EventHandler to use? How can this be done properly?
Thanks so much,
Lazer