- Home
·
- Miscellaneous
·
- Make Text in a text box change colour using a text box and 3 buttons colours are Red/Blue and Black
Make Text in a text box change colour using a text box and 3 buttons colours are Red/Blue and Black
Make Text in a text box change colour using a text box and 3 buttons colours are Red/Blue and Black
Rate Make Text in a text box change colour using a text box and 3 buttons colours are Red/Blue and Black
(1(1 Vote))
'for first button label its caption blue and type in
Private_Sub Command1_Click()
Text1.Text = vbBlue
End If
'for second button label it's caption red and type in
Private_Sub Command1_Click()
Text1.Text = vbRed
End If
'for third button label it's caption default and type in
Private_Sub Command1_Click()
Text1.Text = vbBlack
End If
'run program type in the text box hello and click the buttons
'watch the text colour change
Make Text in a text box change colour using a text box and 3 buttons colours are Red/Blue and Black Comments
No comments yet — be the first to post one!
Post a Comment