Changing Caption Color

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ali Rizwan
    Banned
    Contributor
    • Aug 2007
    • 931

    Changing Caption Color

    Hi everybody
    I want to change color of button's caption in vb6 i tried but couldnt succeed.
    How can i change the color of a commandbutton's caption
    Thanx
  • VBPhilly
    New Member
    • Aug 2007
    • 95

    #2
    Originally posted by Ali Rizwan
    Hi everybody
    I want to change color of button's caption in vb6 i tried but couldnt succeed.
    How can i change the color of a commandbutton's caption
    Thanx
    Not supported.

    A possible solution is to set a Checkbox control to Graphical which makes it look like a button. Checkbox control has a forecolor property that you can change.

    Comment

    • sgrec7
      New Member
      • Aug 2007
      • 58

      #3
      Originally posted by Ali Rizwan
      Hi everybody
      I want to change color of button's caption in vb6 i tried but couldnt succeed.
      How can i change the color of a commandbutton's caption
      Thanx
      Ok now let me get this straight...

      i use VB6 all the time at school (BTW I'm not at school right now) but i thing if its the colour of the text that you want to change

      eg. "command 1" needs to be green instead of black

      then go to the properties of the command button and change the forecolour to green.

      if its the back colour you want to change then you should change the style (i think) from "1 Standard" to "2 Graphical" (or something like that {i cant remember exactly but i'll check next time I'm at school}) and then after that change the back colour of the command button to the desired colour.

      i hope that helps.

      if that doesn't work then i'll get the correct working form school on Monday (BTW i'm in Oz so today is Saturday for me)

      Comment

      • debasisdas
        Recognized Expert Expert
        • Dec 2006
        • 8119

        #4
        That property is not supported in VB 6.0.

        You can do that if using .NET

        orlese do as already suggested by VBPhilly.

        Comment

        • sgrec7
          New Member
          • Aug 2007
          • 58

          #5
          Originally posted by debasisdas
          That property is not supported in VB 6.0.

          You can do that if using .NET

          orlese do as already suggested by VBPhilly.
          wait were u saying this about my post??? because thats how i always do it in VB 6 thats what the teacher showed us ages ago!!

          (But i must admit it leaves a grey border around the command button)

          Comment

          • sgrec7
            New Member
            • Aug 2007
            • 58

            #6
            Originally posted by debasisdas
            That property is not supported in VB 6.0.

            You can do that if using .NET

            orlese do as already suggested by VBPhilly.
            shit!!! sorry, you were right i thort he ment backcolor :(

            Comment

            Working...