Start a new project and add an SSTab control, then a textbox to one of the tabs along with the following code. Now run the program and click between the textbox and a tab. You will see in the Immediate Window 'Validate Fired' and 'Tab Clicked' as expected. Now add a label control to the SSTab and try again, no more 'Validate Fired'.
Resolution that I found was to place all of the controls in a picturebox with the borderstyle set to none and place the picture box on the SSTab. Actually you only need to place the labels in a picturebox but who wants to do that?
Private Sub SSTab1_Click(PreviousTab As Integer)
Debug.Print "Tab Clicked"
End Sub
Private Sub Text1_Validate(Cancel As Boolean)
Debug.Print "Validate Fired"
End Sub
Two strings walk into a bar. The first string says to the bartender: 'Bartender, I'll have a beer. u.5n$x5t?*&4ru!2[sACC~ErJ'. The second string says: 'Pardon my friend, he isn't NULL terminated'.
Resolution that I found was to place all of the controls in a picturebox with the borderstyle set to none and place the picture box on the SSTab. Actually you only need to place the labels in a picturebox but who wants to do that?
Private Sub SSTab1_Click(PreviousTab As Integer)
Debug.Print "Tab Clicked"
End Sub
Private Sub Text1_Validate(Cancel As Boolean)
Debug.Print "Validate Fired"
End Sub
Two strings walk into a bar. The first string says to the bartender: 'Bartender, I'll have a beer. u.5n$x5t?*&4ru!2[sACC~ErJ'. The second string says: 'Pardon my friend, he isn't NULL terminated'.