Results 1 to 10 of 10

Thread: how to change Color of the writing on command buttons

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2002
    Posts
    64

    how to change Color of the writing on command buttons

    I have multi colour command buttons, but i need to change the colour of the writing from black to say white.

    because the colours are so bold the standard blck is not readable.

    any ideas on how i can do this, which property needs changing.

    hope someone can help (my snooker scoring app)

    regards

    Dan
    Newie so thanks for your patience.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    You are talking about changing the forecolor of a command button.

    Dan, I hope you are sitting down, 'cause you ain't gonna believe what you have to do.

    Change Command Button Forecolor

  3. #3
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367
    Or ...

    You can use an option button to do this and change its style to graphical.

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    Originally posted by Negative0
    You can use an option button to do this and change its style to graphical.
    I was going to wait until he recovered and then suggest an option button or a checkbox.

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Jan 2002
    Posts
    64
    @ Hack

    Thanks

    i had a nasty feeling it was gonna be a little more tricky than i thought. Well my snooker app will have to stay as it is.

    you saved me from hours of hunting

    kind reagrds
    dan
    Newie so thanks for your patience.

  6. #6
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    As Negative0 suggested (and I was going to ), you can use option buttons and checkboxes, with their style set to graphical to give the appearance of a command button, and they have forecolor properties that are easily set.

  7. #7
    Fanatic Member Graff's Avatar
    Join Date
    Jan 2002
    Location
    Calgary
    Posts
    668
    On a side note: Does anyone know WHY microsoft could have possibly thought it would be a good idea to make it so difficult to change the color of a command button's text?
    If wishes were fishes we'd all cast nets.

  8. #8
    C# Aficionado Lord_Rat's Avatar
    Join Date
    Sep 2001
    Location
    Cave
    Posts
    2,497
    Little hidden things that impress them.

    You know, Dan comes running in "I changed the color of my command button." and they give him a day off. . .

  9. #9

    Thread Starter
    Lively Member
    Join Date
    Jan 2002
    Posts
    64
    Thanks all, as the VB book im reading says, its these little things that make programming interesting.

    not sure that i agree.

    thanks again

    Dan
    Newie so thanks for your patience.

  10. #10
    Hyperactive Member
    Join Date
    Mar 2002
    Location
    India
    Posts
    342

    hi

    u can change the fore color of ur command button by writing ur own usercontrol..
    ksm

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width