ya it does......just set the style to graphical and then the backcolor to black or what ever and then use this in the form load setbutton yourcommandname.hwnd, yourforecolor
add the moduale and this form that i attached and try it
Also if you have Microsoft Office installed, then you could check out "Microsoft Forms 2.0 Form" in components. It has a command button with a ForeColor property. If you don't see it in the components list, check the Designer tab and see if it is listed there.
Overlay a textbox over the top of a command button
1. Create a textbox with borderstyle = none, backcolor = &H8000000A&
2. Set the forecolor to whatever you want and the text property to whatever you want the button's caption to be.
3. Under the [format] menu [order] send the command button to the back and Bring the textbox to the front and position the textbox over the command button.
then under the text1_click event simply call the command button click event.
eg.
Private Sub Text1_Click()
Me.Command1.SetFocus
Call Command1_Click
End Sub
As forms 2.0 is not redistributable with your application, you could also use the SS Sheridan Command Button as it has a forecolor property.
Ships with Vb
It is stored on your Install disk.
Look under Vb/Controls/THREED32.ocx
Copy that file into Windows\System
then when you open a new project you will see Sheridan Controls
Originally posted by Nucleus Overlay a textbox over the top of a command button
1. Create a textbox with borderstyle = none, backcolor = &H8000000A&
2. Set the forecolor to whatever you want and the text property to whatever you want the button's caption to be.
3. Under the [format] menu [order] send the command button to the back and Bring the textbox to the front and position the textbox over the command button.
then under the text1_click event simply call the command button click event.
eg.
Private Sub Text1_Click()
Me.Command1.SetFocus
Call Command1_Click
End Sub