Manipulating menu strip font colors in Visual Studio 2010 -


i'm building program on i'm hoping have black background , white text.


i've tried setting background color black, forecolor/font color white, during highlight want 2 different colors , 2 during while clicked. can't find proper way manipulate properties. has else ever tried this?

thank you.

i've figured out how using link attached @ top of one. however, resources had dig out around lead me believe deserves stand own question.

what did

i went onto mainform , inserted following code (as per suggested solution):

public mainform()     {         initializecomponent();         menustripmain.renderer = new myrenderer();     }      private class myrenderer : toolstripprofessionalrenderer     {         public myrenderer() : base(new mycolors()) { }     }      private class mycolors : professionalcolortable     {         public override color menuitemselected         {             { return color.white; }         }         public override color menuitemselectedgradientbegin         {             { return color.black; }         }         public override color menuitemselectedgradientend         {             { return color.slategray; }         }         public override color menuitemborder         {             { return color.yellow; }         }     } 

however, can see, there properties not included in solution. parts want manipulate here can made work any object on form, not menu strip, reference names can access here. in addition, there large collection of colors odd names can addressed, list right here. don't think can use hex color codes.

this way can customize colors of object in form!


Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

java.util.scanner - How to read and add only numbers to array from a text file -

iphone - Three second countdown in cocos2d -