Tab Control labels - add code?

Nic

Registered User.
Local time
Today, 11:40
Joined
Jan 15, 2012
Messages
47
Hi,
Iv got a tab control on my form.
On each tab is a variety of text boxes. When i click/select a tab, i would like to set the focus to a particular text box within that tab.
There appears to be the option to add an 'on-click' command, but this doesn't appear to work for me.
For example, on my Tab1 on-click event i have:

Me.Textbox1.setfocus

Text box1 is on 'Tab1' and i would like the focus to be automatically set to this text box when the tab is clicked. Any suggestions on how i can make this work?

many thanks,
 
The OnClick event of a Tab Control is next to useless. You need to use the OnChange event of the Tab Control and then figure out which tab you are on.
 

Users who are viewing this thread

Back
Top Bottom