Home All Groups Group Topic Archive Search About

vb .net 2003 tab control

Author
8 Apr 2006 6:00 PM
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.

Author
8 Apr 2006 6:02 PM
Homer J Simpson
"Stout" <whan***@Yahoo.com> wrote in message
news:1144519246.539350.237350@e56g2000cwe.googlegroups.com...
> 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?
Author
8 Apr 2006 6:17 PM
Stout
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.
Author
8 Apr 2006 6:53 PM
Homer J Simpson
"Stout" <whan***@Yahoo.com> wrote in message
news:1144520230.913386.96280@t31g2000cwb.googlegroups.com...
> 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
Author
8 Apr 2006 7:36 PM
Stout
Thanks man...worked like a charm!