
Public static Color clrSelectedBG_Blue = Color.FromArgb( 255, 186, 228, 246) Public static Color clrImageMarginLine = Color.FromArgb( 255, 160, 160, 180) Public static Color clrImageMarginWhite = Color.FromArgb( 255, 244, 247, 252) Public static Color clrImageMarginBlue = Color.FromArgb( 255, 212, 216, 230) Public static Color clrSubmenuBG = Color.FromArgb( 255, 240, 240, 240) Public static Color clrHorBG_White = Color.FromArgb( 255, 244, 247, 252) Public static Color clrHorBG_GrayBlue = Color.FromArgb( 255, 233, 236, 250) The first class to add is a class to hold Color values.
VISUAL STUDIO 2008 MENUSTRIP FULL
Since we do not have access to Modules in C#, the best we can do is a Class full of a bunch of static members. Thissen starts his article out having us build a Module in VB which holds global constants for colors, etc. I named the Class Library project the VS2008StripRenderingLibrary and added to it the following classes. Thissen's work was to first start by creating a new Class Library project. My first step in hopefully improving upon Mr. We will guide you step by step through adding this capability to your own programs. This article does the same thing, by translating the VB.NET code provided by Mr. This is how this article adapts, and hopefully improves upon, Mr. Why not save trouble and have the Designer do it, by adding custom controls from a library and just dropping them onto the form, renderer and all? As you increase the number of such controls in your project, going into some file somewhere and tweaking code gets cumbersome.

Plus, I was being lazy and didn't want to add the standard MenuStrip, ContextMenuStrip, and ToolStrip controls from the Toolbox and then have to go in by hand into the code and set the Renderer property on each. I had no such luck in finding versions written in C# but a Google search did come across this excellent article on VBForums by Nick Thissen.

VISUAL STUDIO 2008 MENUSTRIP SOFTWARE
I was developing an IDE-like software project and was looking around for a ToolStripRenderer class written in C# which would aid me in making my MenuStrip, ContextMenuStrip, and ToolStrip controls look more like Visual Studio's variety. Illustration of what this Renderer implementation does, with a comparison screenshot of Visual Studio.
