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 11:04:30
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, Californie, États-Unis
 
 
À
29/09/2004 16:15:45
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00947153
Message ID:
00947525
Vues:
13
Tony,
Are you saying that when you run the form and click on the tab, the correct page displays but your code doesn't run?

Assuming that's the case, check the properties sheet and using the dropdown, select TabControl. Click on the Events icon (appears as a lightning bolt) and make sure the Click event has the value "TabControl_Click" next to it. If it doesn't, use the dropdown on the right side of the textbox to select it.

By the way, I just tested this in our project, and when run, it displays the name of the page each time you click on a tab.

Hope that helps,
---J

>The following code doesn't work:
>
> Private Sub TabControl_Click(ByVal sender As Object, ByVal e As System.EventArgs)
> MsgBox(TabControl.SelectedTab.Name.ToString)
> End Sub
>
>When I click on a tab the tab page appears but the above code doesn't.
>
>Can you suggest why?
>
>Thanks.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform