Command Buttons on forms

  • Thread starter Thread starter AgentX
  • Start date Start date
A

AgentX

Is it possible to make command buttons in any color other than default
gray? And can you change the text with code ? In other words instead
of hard-coding the text on the button, can you display text which is
'situational' ? Any help or hints would be greatly appreciated !
 
The Command buttons will default to the Windows colors. You can not change
this. However, it may be possible to accomplish the same event using a label
that can be colored and even made to act like a rollover.
 
Yes, you can change the text displayed on a button with code.

If whatever you're checking for then
me.NameOfButton.caption = "Text to be displayed on button"
else
me.NameOfButton.caption = "Text to be displayed on button"
end if

HTH,
Debbie

| Is it possible to make command buttons in any color other than default
| gray? And can you change the text with code ? In other words instead
| of hard-coding the text on the button, can you display text which is
| 'situational' ? Any help or hints would be greatly appreciated !
|
 
Back
Top