|
-
December 8th, 1998, 09:29 PM
#1
Changing Button Color
I have several push buttons in a form.
When a button has got focus, I want to change that button's color to red.
How I can do that?
Thanks in advance.
-
December 10th, 1998, 11:07 AM
#2
Re: Changing Button Color
At desgin time you have to change the Style-property of the button to
1-graphical.
Then add GotFocus and LostFocus to your code.
Private Sub Command2_GotFocus()
Command2.BackColor = &HFF&
End Sub
Private Sub Command2_LostFocus()
Command2.BackColor = &H8000000F
End Sub
-
December 10th, 1998, 04:43 PM
#3
Re: Changing Button Color
The only way i know to do that is to make sure that STYLE is set to Graphic and then assign a blank .bmp with a colour of your choice to the DOWNPICTURE property for that button.
Hope this helps.
Christopher
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|