The easyest way to customise you display of your ToolStrip, MainMenu and StatusBar is to use a custom ColorTable.
Just inherit from the ProfessionalColorRenderer and override what you want, with the colors you want:
1: Public Class MortgagesPlcColorTable
2: Inherits ProfessionalColorTable
3:
4: Public Overrides ReadOnly Property ButtonCheckedHighlightBorder() As System.Drawing.Color
5: Get
6: Return MyBase.ButtonCheckedHighlightBorder
7: End Get
8: End Property
9:
10: Public Overrides ReadOnly Property MenuItemPressedGradientMiddle() As System.Drawing.Color
11: Get
12: Return Color.FromArgb(91, 91, 91)
13: End Get
14: End Property
15:
16: Public Overrides ReadOnly Property ToolStripContentPanelGradientBegin() As System.Drawing.Color
17: Get
18: Return Color.FromArgb(80, 80, 80)
19: End Get
20: End Property
21:
22: Public Overrides ReadOnly Property ToolStripContentPanelGradientEnd() As System.Drawing.Color
23: Get
24: Return Color.WhiteSmoke
25: End Get
26: End Property
27:
28: Public Overrides ReadOnly Property ToolStripDropDownBackground() As System.Drawing.Color
29: Get
30: Return Color.FromArgb(91, 91, 91)
31: End Get
32: End Property
33:
34: Public Overrides ReadOnly Property ToolStripGradientBegin() As System.Drawing.Color
35: Get
36: Return Color.FromArgb(80, 80, 80)
37: End Get
38: End Property
39:
40: End Class
Once you have done this, all you need now is to add it to your contols:
1: System.Windows.Forms.ToolStripManager.Renderer = New ToolStripProfessionalRenderer(New MortgagesPlc.Windows.Forms.MortgagesPlcColorTable)
All done! If you have problems you can inherit from the ToolStrip control and change the renderer in the constructor…
Technorati Tags: .NET
Smart Classifications
Each classification [Concepts, Categories, & Tags] was assigned using AI-powered semantic analysis and scored across relevance, depth, and alignment. Final decisions? Still human. Always traceable. Hover to see how it applies.
What to read next
Adding ToolStripPanel UI Adapter Support to the Composite UI Application Block
Explains how to extend the Composite UI Application Block to support ToolStripPanel UI adapters, enabling dynamic ToolStrip integration and …
Advice on using XamRibbon with Composite WPF
Provides guidance and code examples for integrating Infragistics XamRibbon with Composite WPF, including custom region adapters for dynamic …
Reformat your CSS on the fly
Learn how to use a .NET HTTP handler to dynamically adjust CSS file paths, ensuring images and resources load correctly across different web …
Detecting agile theatre with real delivery signals
Why Most Companies Operating Models Fail in Dynamic Markets
A concise comparison of Predictive and Adaptive Operating Models, explaining why traditional structures fail in dynamic markets and how …
Don’t Manage Dependencies, Remove Them
Explains why dependencies are a sign of poor system design and outlines steps to eliminate them by aligning teams, clarifying ownership, and …
The Estimation Trap: How Tracking Accuracy Undermines Trust, Flow, and Value in Software Delivery
Tracking estimation accuracy in software delivery leads to mistrust, fear, and distorted behaviours. Focus on customer value, flow, and …
Flow of Value vs Flow of Work – Misnomer or Useful Shorthand?
Compares “flow of value” and “flow of work” in Kanban, explaining why only validated outcomes count as value and stressing the need for …
Why Outsourcing DevOps Fails, and How Real Engineering Excellence Starts With Your Team
Avoid DevOps vendor lock-in, discover how true engineering excellence starts with partnership, not outsourcing. Ready to transform your …