CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2000
    Posts
    104

    Forecolor of a CommandButton

    How can i change the forecolor of a Command button?thanks in advance for any reply.


  2. #2
    Join Date
    May 2000
    Location
    New York, NY, USA
    Posts
    2,878

    Re: Forecolor of a CommandButton

    Change Style to Graphical and then change the background color

    to change forecolor

    Put textbox over command button caption. Set the backolor of the text box to the color of the
    command button, set borders to None. Change the ForeColor of the Text box.
    If you use this, don't forget to add
    Private Sub Text1_Click()
    Command1_Click
    End Sub



    Iouri Boutchkine
    [email protected]
    Iouri Boutchkine
    [email protected]

  3. #3
    Join Date
    Feb 2000
    Location
    Ireland
    Posts
    808

  4. #4
    Join Date
    Jun 2000
    Posts
    104

    Re: Forecolor of a CommandButton

    hey thats nice.thanks a lot.that is good enough for me.but still i'd like to know if there is any API function available to do it.


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

Featured