Toggle Buttons in Option Group

G

Guest

Is there any way to change the Fore Color (the color of the text in the
toggle button) when that button is selected?
 
G

Guest

Me.cmdSomeButton.Forecolor = vbRed
The question is when do you want to do it?
Easiest way is to set to the color you want when selected using the GotFocus
event and the color when deselected to the LostFocus event.
 
G

Guest

Let me clarify some... I have and option group where I selected Toggle
buttons as the 'style'. When looking at the form with continuous forms, the
Toggle button selected is a slightly darker grey than the others, but doesn't
show up very well as you scan down the form. What I'd really like to do is
change the color of the button, but would settle for a change of color of the
caption. So, the color of the selected button, or caption, would have to be
set based on the value of the option group.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top