Zooker
09-02-2003, 10:42 PM
I have made a menu using 6 Command buttons. I need to Change the captions after design time. I have left the caption portion of the Label
property menu BLANK. I have tried Command1.Caption = "Number 1" and also Command1.FontName = "Number 1" on all six buttons respectively to NO Avail. ANY IDEA's ?
Nylyst
09-02-2003, 10:52 PM
I have made a menu using 6 Command buttons. I need to Change the captions after design time. I have left the caption portion of the Label
property menu BLANK. I have tried Command1.Caption = "Number 1" and also Command1.FontName = "Number 1" on all six buttons respectively to NO Avail. ANY IDEA's ?
So long as you have the button names right, what you have listed should work.
Try this:
Create a new form add 1 button and two radio buttons
Name the button button1
Name each of the radio buttons option1 and option2 respectively
Then add the following code:
Private Sub Option2_Click()
Command1.Caption = "Option 2"
End Sub
Private Sub Option1_Click()
Command1.Caption = "Option 1"
End Sub
Diurnal
09-02-2003, 11:06 PM
Are you sure that the code is running to make the changes? Try moving the .Caption block into the Form_Load Event and see if it works there. Also, The .FontName Property is use to Load the correct Font to display the caption with not the caption you want to display. Hope this helps.