MouseClick on Tab controls

S

Shooter

Is there a way to know which tab has been clicked on? I
want to be able to hide/show different controls a top of
form depending on which tab the user has selected.
 
A

Allen Browne

Check the Value of the tab control, in its Change event.

This example shows SomeBox only if MyPage was the page selected:
Me.SomeBox.Visible = (Me.MyTabControl = Me.MyPage.PageIndex)
 
Top