Results 1 to 4 of 4

Thread: Last one was with error

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2002
    Location
    Canada
    Posts
    455

    Post

    Thanks karun for your information.
    The color of the button can be changed by:

    Command1.BackColor = &H000000FF&

    The text color of the button is still black and VB5 is still not happy with:

    Command1.ForeColor = &H00FFFFFF&

    Please can you give a solution?

    Michelle.


  2. #2
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845

    Post

    The text on command buttons uses the system 3D Objects settings so you can't easily change it just for your app.
    (I expect someone will suggest otherwise though!)

    What you could do though, is use a picture on your command button with the lettering in your desired font and colour.

    ------------------
    Mark Sreeves
    Analyst Programmer

    [email protected]
    A BMW Group Company



  3. #3
    Guest

    Post

    Use a check/option box, with its style set to graphical, this gives it the same appearance as a command button, but you can set the forecolor on it. De-check it in the control_click, so it wont look like it is pressed.

    Hope it helps.


    ------------------

    Vincent van den Braken
    EMail: [email protected]
    ICQ: 15440110
    Homepage: http://www.azzmodan.demon.nl




  4. #4
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845

    Post

    Azzmodan
    I never knew you could do that with a checkbox!

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