CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Highlight color

  1. #1
    Join Date
    Oct 2000
    Posts
    12

    Highlight color

    I want to make my combobox highlight color green instead of the system defined color. Thanks.


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Highlight color

    AFAIK you need to change the system color then. You can do that in your VB program by calling SetSysColors API.



  3. #3
    Join Date
    Oct 2000
    Posts
    12

    Re: Highlight color

    I'm just a beginner. Don't know where to call for syscolors to load and how to select color (rgb values?)And don't know how to return syscolors to orginal on exit if needed. I'm just a newbie


  4. #4
    Join Date
    May 1999
    Posts
    3,332

    Re: Highlight color

    search MSDN for an article with the following title:
    "HOWTO: Use Custom System Colors Only When Your App Has Focus"
    it has all the details and source code.


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