Tab Control - testing which tab has focus

Meltdown

Registered User.
Local time
Today, 00:27
Joined
Feb 25, 2002
Messages
472
Hi, I want to run some code when a user clicks on a particular tab in a tab control.

How do i test which tab has focus and where do I put the code, in the Tab Control, or Page Control properties click event.

If Me.TabControl.Pages(1).SetFocus Then
MsgBox "My Message", vbOKCancel + vbExclamation, "Important Note"
End If <...not working
 
Hi Štef, thanks a lot for the demo :)
 

Users who are viewing this thread

Back
Top Bottom