Results 1 to 3 of 3

Thread: Color change of a command button

  1. #1

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

    Post

    Dear VB users,

    I searched for the property to change the color of the command button and the text on the button.

    Command1.BackColor = &H000000FF&
    No effect!

    Command1.ForeColor = &HH00000FF&
    Gives an error message: Method or data member not found

    Can someone tell me what I do wrong?
    What are the right properties?

    Thanks a lot,

    Michelle.

  2. #2
    Member
    Join Date
    Jan 2000
    Location
    Singapore
    Posts
    59

    Post

    Hai,
    In the command button properties you please change the style property to Graphical.
    Then you can change all the color properties.

    thanks
    karun

    [This message has been edited by karunakaran (edited 02-16-2000).]

  3. #3
    Addicted Member
    Join Date
    Jan 2000
    Location
    Oshkosh, WI
    Posts
    163

    Post

    Unfortunately, even after you change it to a graphical button there is still no forecolor property MS blew this one. Some suggestions have been to use a check box as a button (check the style property) but there some wierd issues you have to work around to make it work like a command button.

    I'm currently using a 3rd party button to get colored text.

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