Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tab control event

Status
Not open for further replies.

SwingXH

Technical User
Jun 15, 2004
97
US
I have a form using tab controls. But the event that I created for switching from one page to another did not work well. For example tab click event, I have to click the form below the tab to active the event. But I want it to be actived once I click the tab. Any idea? Thanks.
SwingXH
 
I have several pages and want several different actions depending on which page is gotfocus. But I could not find the way to index different pages that on focus.
Thanks,

SwingXH
 
hneal98 is right. The OnChange event will fire when the user selects a tab. The value of the tab control will tell you which page was selected. Suppose the name of your tab controls is "TabCtl". Then try this in the OnChange event (to see how it works).

Msgbox TabCtl.value

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top