vb .net 2003 tab control

  • Thread starter Thread starter Stout
  • Start date Start date
S

Stout

I want something to update when I click on one of my tabcontrols. Is
there some kind of event that says if tabcontrol1 is clicked do
something?

I apologize for my crude description...I am really new to all this.

Thanks.
 
Stout said:
I want something to update when I click on one of my tabcontrols. Is
there some kind of event that says if tabcontrol1 is clicked do
something?

Where on the control? On a tab? On the body?
 
I created a tabcontrol with three tabs: A, B, C

When I click on tab 'C' I want to have a messagebox pop up that says
"Entered"

Thanks.
 
Stout said:
I created a tabcontrol with three tabs: A, B, C

When I click on tab 'C' I want to have a messagebox pop up that says
"Entered"

Private Sub TabControl1_SelectedIndexChanged _
(ByVal sender As System.Object, ByVal e As System.EventArgs) _
Handles TabControl1.SelectedIndexChanged
MsgBox("You selected tab " & CStr(TabControl1.SelectedIndex + 1))
End Sub
 
Back
Top