MarkRM
December 3rd, 1999, 04:51 AM
I have a couple of things I can't work out.
1) I want to use a checkbox as a means to display the status of a variable. I do not want the user to be able to change its state by clicking on it. I have tried setting Enabled=False, but this just greys out the control. I also tried to change the state back in the Click event handler, but that just causes a recursive Click event.
2) I am using the SSTab control to provide a set of tabs. However I want to be able to select the active tab under program control and it does not seem to work.
The MSDN help gives this example:
private Sub Command1_Click()
Form2.SSTab1.Tab = 1
Form2.Show
End Sub
I have put this code in my form load (The tabs are on the first loaded form of my application):
private Sub Form_Load()
' Other code first
SSTab1.Tab = 0
Show
' More code ...
End Sub
Thanks for any help,
Mark
Mark
1) I want to use a checkbox as a means to display the status of a variable. I do not want the user to be able to change its state by clicking on it. I have tried setting Enabled=False, but this just greys out the control. I also tried to change the state back in the Click event handler, but that just causes a recursive Click event.
2) I am using the SSTab control to provide a set of tabs. However I want to be able to select the active tab under program control and it does not seem to work.
The MSDN help gives this example:
private Sub Command1_Click()
Form2.SSTab1.Tab = 1
Form2.Show
End Sub
I have put this code in my form load (The tabs are on the first loaded form of my application):
private Sub Form_Load()
' Other code first
SSTab1.Tab = 0
Show
' More code ...
End Sub
Thanks for any help,
Mark
Mark