Results 1 to 6 of 6

Thread: How to change the font color of a command button

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Posts
    1

    Talking

    Hello all,

    I'm a beginning VB programmer. I'm working on a program for class. How do you change the font color of a command button?


    thanks,

    Howie

  2. #2
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    The regular command button does not have a forecolor property. You can use the command button that is stored in Sheridan Controls or just add a checkbox and change it's sytle to Graphical...Then it will look like a command button and have a forecolor property.

    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  3. #3

  4. #4
    Lively Member *Super Sniper*'s Avatar
    Join Date
    Jan 2000
    Location
    Portland, OR
    Posts
    81
    use a timer with an intervelt of 10 and set the checkbox's check property to vbUnchecked.
    Website

    Send an e-mail to [email protected] to get a sample of my games.

    1. Hardware: The parts of a computer system that can be kicked.
    2. f u cn rd ths, u cn gt a gd jb n cmptr prgrmmng.
    3. Bad command or file name. Go stand in the corner.
    4. Never trust a computer you can't throw out the window.

  5. #5
    Guest
    An easier method is to change the state when the mouse is released.
    Code:
    Private Sub Check1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
        Check1.Value = Unchecked
    End Sub

  6. #6
    Addicted Member Ramandeep's Avatar
    Join Date
    Feb 2000
    Posts
    158
    Run your app, hit print screen key load paint and past it in, now get the bucket fill and select your desired colour, zoom in and staring filling each letter on the caption

    Sorry just being silly

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