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

SStab Caption from previostab

Status
Not open for further replies.

opticus1

Programmer
Jan 30, 2004
1
US
Hi,

Can anyone help me figure out how to retrieve the caption from the previously selected tab on the tabbed dialog control. I want to save changes made to the particular tab the person was working on and I can't figure out how to retrieve the caption of that previous tab. Once they click to a new tab I can only seem to pull that information.

Thanks
 
Private Sub SSTab1_MouseDown(Button As Integer, _
Shift As Integer, _
x As Single, _
y As Single)
Debug.Print "Current Tab " & SSTab1.Tab
End Sub
Private Sub SSTab1_MouseUp(Button As Integer, _
Shift As Integer, _
x As Single, _
y As Single)
Debug.Print "New Tab " & SSTab1.Tab
End Sub
 
Nothing so dramatic.

Try this (note the default parameter!!!)

Private Sub SSTab1_Click(PreviousTab As Integer)
MsgBox SSTab1.TabCaption(PreviousTab)
End Sub






 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top