Folks,
I have a disabled ToolStripMenuItem in my MenuStrip object in VS2005. Even though it is disabled, there is a black box that outlines the item when the user mouses over it. I want it to have a completely disabled look and feel.. similar to Word or Outlook.. i.e. no visual difference between mouse over and not.
I've looked around at all the options, and can't find a way to do this. Am I missing something
Appreciate any help you can give.
Thanks!
-Jeff

How to change selection box around disabled ToolStripMenuItem
Mark d Henning
Phil,
Thanks for the feedback. I pretty much came to your conclusion a couple of days ago.. and got it working by creating a class from ToolStripProfessioanlRenderer and also another class derived from ProfessioanColorTable.
Thanks!
Jegant
Your only option is to derive a class from the ToolStripProfessionalRenderer and then override the virtual methods that are used to draw the menu item. Then inside the overriden method you can check for the menu item being disabled and in that case have it draw the different way you need. You might need to experiment with the different methods to find the ones involved in drawing the menu item because it is not obvious!
Phil Wright
http://www.componentfactory.com
Free UI controls for .NET2