PDA

View Full Version : Solved: Change button color



majaro
01-10-2008, 12:54 PM
Is there a way to chage a button color on a form w/o using an add-in? I have looked and cant seem to find any resources.

GaryB
01-10-2008, 05:52 PM
I did it by creating a bmp in photoshop with the color and text I wanted and then in the properties box of the command button at picture I loaded the bmp and set the picture type to embedded. You may have to play with the size of the bitmap out of photoshop to fill the button correctly unless you are using a solid color with no type then it should work fine.

Gary

majaro
01-10-2008, 06:51 PM
Thanks. Never thought of that. Will give it a try..

DarkSprout
01-11-2008, 02:59 AM
Or. Use a Label, with your custom colour


Private Sub Label01_Click()
[Label01].SpecialEffect = 2 ' Sunken
[Repaint]

'// Code Here

[Label01].SpecialEffect = 1 ' Raised
End Sub