General information
Category:
The Mere Mortals .NET Framework
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.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only