Tab Strip On Click Event

shamas21

Registered User.
Local time
Today, 15:26
Joined
May 27, 2008
Messages
162
Hi All

I have a tab strip on my form.

I have created Page21_Click() On click event to bring back a message box for when ever i click on the second page on my tab strip(which is called Page21).

this is the code
Code:
Private Sub Page21_Click()
 
MsgBox "Hello"
 
End Sub

But it doesnt execute anything? Does anyone know why this is?

Thanks
 
The Click event of a tab page is practically useless. Use the Change event of the TabControl instead and look at the TabIndex or .Value to see which TabPage you are now on.
 
The Click event of a tab page is practically useless. Use the Change event of the TabControl instead and look at the TabIndex or .Value to see which TabPage you are now on.

Fantastic...your suggestion works...many thanks:)
 
Just as a matter of interest have a look at this simple demo of a tab strip control. This may give you some more insight on how they work.

David
 

Attachments

Users who are viewing this thread

Back
Top Bottom