CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2010
    Posts
    11

    contextManuStrip color

    Hi

    I create a context menu strip. I add a couple of menu items. I then associate images with these items.

    In visual studio the color of the control looks correct. But when I execute my application the color of the control where the icons are housed changes to a blue color. I would like the colors to be the same color scheme as in the VS environment.

    I've changed the context menu strip render mode to 'System', 'Professional', and 'ManageRenderMode'. All to no avail.

    Any ideas?

    Thanks in advance.

  2. #2
    Join Date
    Jun 2008
    Posts
    2,477

    Re: contextManuStrip color

    How about some code and a screenshot of the problem. We are not psychic debuggers

  3. #3
    Join Date
    Feb 2010
    Posts
    11

    Re: contextManuStrip color

    Code...yes...

    I've obviously not explained the problem very well.

    I haven't written one line of code. It is all generated when you create controls withing Visual Studio. I guess I could create the controls then post the code that was auto-generated by visual studio. Not sure that is going to tell you much other than how Visual Studio generates code with you create a control, such as my context menu strip.

    The easiest way to see my problem, I guess, is to bring up Visual Studio. Right click anywhere. See the color scheme of the context menu?

    If you then create a context menu strip (drag it over from the toolbox) and add a menu item with an associated image, you'll see that your newly created context menu strip looks nothing like the context menu in the Visual Studio environment (in terms of the color scheme).

  4. #4
    Join Date
    Feb 2010
    Posts
    11

    Talking Re: contextManuStrip color

    Thats quite a challenge. Screen capture a context menu!

  5. #5
    Join Date
    Jun 2008
    Posts
    2,477

    Re: contextManuStrip color

    Quote Originally Posted by hj_simpson View Post
    Thats quite a challenge. Screen capture a context menu!
    Yeah, it is

    I had to do it all the time when I worked in QA, you have to be quick with the printscreen button, takes a few tries sometimes.

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