Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can't seem to access mmTabControl click event
Message
De
30/09/2004 18:55:01
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, Californie, États-Unis
 
 
À
30/09/2004 18:14:38
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00947153
Message ID:
00947765
Vues:
13
Tony,

In the designer, click on one of the tabs of the tabcontrol. Look in the properties sheet. What control is listed there? It should be the tabcontrol, with the name of the control in bold text.

---J


>Arrrgh.
>
>I can't change my project now, I've spent too much time in it. I have to make it do what I want. Here's the problem. I can't see the MM TabControl.
>
>When I use a routine like this:
>
> Private Sub TabControl_SelectedIndexChanged(ByVal sender As Object, _
> ByVal e As System.EventArgs) Handles TabControl.SelectedIndexChanged
> Select Case TabControl.SelectedTab.Name
> Case "TabPage1"
> 'do something
> Case "TabPage2"
> 'do something else
> End Select
> End Sub
>
>I am getting an error under TabControl saying 'Handles clause requires a WithEvents variable'.
>
>There is no 'WithEvents' variable for the MM TabControl. It's missing. There are for the other controls. So I can't access it's events.
>
>So does anyone know how to fix this?
>
>Thanks.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform