Command Button Appearance

  • I have a Userform with one RefEdit control and three CommandButtons. The RefEdit has the focus. But one of the three command buttons is the default (it varies). I would like to make the default button look like it has the focus (even though the RefEdit does). How can one hightlight a command button? I'm currently using underline, but that is too subtle.


    Any ideas? Thank you.

  • Re: Command Button Appearance


    Hey mikerickson
    I have used

    Code
    1. Private Sub CheckBox1_Click()
    2. If UserForm1.CheckBox1.Value = False Then
    3. UserForm1.CheckBox1.ForeColor = &H80000012
    4. Else
    5. UserForm1.CheckBox1.ForeColor = &HC00000
    6. End If
    7. End Sub


    You could rework this for the comandbutton?
    pike

  • Re: Command Button Appearance


    In my environment, that controls the color of the caption characters. Changing that from the default black is a stong effect, but in the wrong direction for my application.


    Thanks.

  • Re: Command Button Appearance


    In my environment, that controls the color of the caption characters. Changing that from the default black is a stong effect, but in the wrong direction for my application.


    Thank...(pause)...


    OH..(light bulb goes off).. you're suggesting that the non-default buttons be dimmed. Thats a subtle approach. For the caption to be legible its got to be a slight difference. Adding different subtle emphasis to different appearance properties gets me closer to a nice highlight.


    Thank You.