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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SSTAB

Status
Not open for further replies.

knulisch

Programmer
Joined
Oct 10, 2000
Messages
18
Location
US
I have a form with an SStab control that contains two tabs. If the user clicks on Tab2 while they are entering data on Tab1 I ask them if they really want to go to Tab2 (cancelling updates) or stay on Tab1 and continue updating.

My problem is I cannot make the program stay on Tab1. Is there some sort of cancel tab request procedure I can use?

Thanks
 
Try this:

SSTab1.Tab = 0 'back to Tab1
Text1.SetFocus 'set focus on text box at Tab1

Regards:-)
 
In the click event there is a previoustab that you could possibly use.

sstab1.tab = previoustab

Setting the tab this way will fire the click event again, so you would have to make a work around for it.

David Paulson


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top