How to change the color of the currently selection in ContextMenuStrip ?
-
Hi, i have a contextMenuStrip control with 5 items. I can change its forecolor and backcolor easy like contextMenuStrip1.Forecolor=color.Yellow. How can i change the color of the selected item when i am on it? I mean when i select for example forth item, there is a different color that shows/indicates on which item i am on. How do i change this color? Thanks in advance
-
Hi, i have a contextMenuStrip control with 5 items. I can change its forecolor and backcolor easy like contextMenuStrip1.Forecolor=color.Yellow. How can i change the color of the selected item when i am on it? I mean when i select for example forth item, there is a different color that shows/indicates on which item i am on. How do i change this color? Thanks in advance
By inspecting the menuitem object you will see that there is no fore/back color property so you are not going the set these in the standard object.
Never underestimate the power of human stupidity RAH
-
By inspecting the menuitem object you will see that there is no fore/back color property so you are not going the set these in the standard object.
Never underestimate the power of human stupidity RAH
No, you make mistake. Both in System.Windows.Forms.ContextMenusStrip and in System.Windows.Forms.ToolStripMenuItem there is a forecolor and backcolor property, and for sure i can set those 2 colors because i already do. How do you know on which MenuItem you are on, while you have not yet click on any and you are just browsing? You know it, because on this MenuItem you are on, it appears something like a 'selection' that has a different color. This color i want to change!