Hey,
Here is my latest Toolstrip Renderer (well actually, just a ColorTable) that mimicks the Office 2007 menustrip and toolstrip look as closely as possible. Since Office 2007 usually uses a Ribbon, I based my example on Visio 2007, which does not use a Ribbon. It seems that most third party software takes the Visio look as standard too, so I figured I should follow them
Screenshots:
The attached class is a ProfessionalColorTable which you assign to a ToolstripProfessionalRenderer. The renderer then uses the colors defined in the color table class. If you then assign an instance of that renderer to the Renderer property of the MenuStrip and ToolStrip, you get the colors as defined in the color table.
In short, this is how you use it:
1. Add the attached class to your project
2. Add a normal MenuStrip and ToolStrip to your form
3. Assign their Renderer property like so:
vb.net Code:
Dim r As New ToolStripProfessionalRenderer(New Office2007ColorTable)
MenuStrip1.Renderer = r
ToolStrip1.Renderer = r
(This assumes your MenuStrip is called MenuStrip1, your ToolStrip is called ToolStrip1, and the color table class you downloaded from this post is still called Office2007ColorTable. If not, replace these names with your own names obviously.
I would usually run that code in the Form_Load event, or possibly in the constructor (Public Sub New) of the relevant form.
Enjoy!