Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't seem to access mmTabControl click event
Message
From
30/09/2004 11:04:30
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, California, United States
 
 
To
29/09/2004 16:15:45
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00947153
Message ID:
00947525
Views:
14
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform