Results 1 to 5 of 5

Thread: color of text on button

  1. #1

    Thread Starter
    Addicted Member kalicki's Avatar
    Join Date
    Mar 2001
    Location
    Orlando, Florida
    Posts
    134
    I can do alot of things in VB but one thing that has evaded me is how to change the color of the text on the buttons. I need to figure out how to do it for the program i'm writing (a periodic table), and i just cant figure out how to do it.
    Thanks,
    Kalicki

  2. #2
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390
    add components:

    Use the Microsoft Forms 2 controls (i think that was it)

    it has a command button that the text color can be changed on.
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  3. #3
    Guest
    Or use a Checkbox, set the Style to Graphical.

    And since it stays checked, just uncheck it.


    Code:
    Private Sub Check1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
        Check1.Value = vbUnchecked
    End Sub

  4. #4

    Thread Starter
    Addicted Member kalicki's Avatar
    Join Date
    Mar 2001
    Location
    Orlando, Florida
    Posts
    134
    i tried geoff_xrx's solution and it worked
    Thanks to both of you,
    Kalicki

  5. #5
    Guest
    There is also a button shipped with Sheridan 3D controls that lets you do this.

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