Results 1 to 5 of 5

Thread: A Simple Question From a Beginner

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Location
    West Florida
    Posts
    6
    Is it possible to change the text color on a control?
    I do use the graphical display and change the backcolor,
    but I can seem to do the same with the forecolor....


    Thanks,

    Richard

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

    <?>

    What control are you talking about...maybe the Command Button...that seems to pop up often. It doesn't have a forecolor property.
    There are 2 ways around this. Sheridan Controls that ship with Vb have a button that has the property and if you want you can sub a check box for a command button.
    Add a checkbutton and set the style to graphical and it changes shape and takes on the shape of a command button
    and it has 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
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Which control?

    All standard controls (I think), except the command button, have a forecolor property.
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

  4. #4
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    HeSaidJoe :

    Did not see your reply.
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

  5. #5
    Guest

    Thumbs up Depends on the control

    Generally the forecolor property will change the caption color, except for controls where it is specifically for inputed data to the control, i.e textbox.

    Worse case senario, use program code to change colour, something like

    Code:
    label.caption.color = vbwhite
    First look at the properties, for some third party controls there are three or four separate properties to change colour, depending on normal, highlighted, etc

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