You can make the user see the underline by creating your own ToolStrip visualization tool. It took me a while to figure out how to get around Chris. Here is the creator I created:
using System; using System.Drawing; using System.Windows.Forms; namespace YourNameSpace { class CustomMenuStripRenderer : ToolStripProfessionalRenderer { public CustomMenuStripRenderer() : base() { } public CustomMenuStripRenderer(ProfessionalColorTable table) : base(table) { } protected override void OnRenderItemText(ToolStripItemTextRenderEventArgs e) { e.TextFormat &= ~TextFormatFlags.HidePrefix; base.OnRenderItemText(e); } } }
And then in the form using MenuStrip in the constructor, you set the renderer:
public YourFormConstructor() { InitializeComponents(); menuStripName.Renderer = new CustomMenuStripRenderer(); }
I would like to note that if you prefer a visualization style to a system style, you can extend the ToolStripSystemRenderer class instead of Professional, but I like to customize the color table. This is a hotfix that does not require the client to change their computer settings. Enjoy it!
Cris mclaughlin
source share