Thank you very much.
As the title suggests, place the mouse when the ContextMeun item Enabled = True,
I want to change the color when selected, but I don't know how.
Will it change with properties?
I want to change the color of the ↑ paste (Paste.Enabled = True)
(Copy.Enabled = False)
Answer # 1
You can specify a color using ProfessionalColorTable.
You can change the background color to red when the menu is selected by the following method.
Private Sub Form1_Load (sender As Object, e As EventArgs) Handles MyBase.Load Dim table As ProfessionalColorTable = New ProfessionalColorTableEx () ContextMenuStrip1.Renderer = New ToolStripProfessionalRenderer (table) End Sub Private Class ProfessionalColorTableEx Inherits ProfessionalColorTable Public Overrides ReadOnly Property MenuItemSelected As Color Get Return Color.Red End Get End Property End Class
- css - i want to change the text color of placeholder
- js set the mouse hover to change the background color
- how to make a boxplot of data containing nan in matplotlib and change the color
- php - i want to change the background color and text color when creating a multiplication table
- ios - [swift 5] change the color of the textview selection
- python - in the histogram of matplotlib, i want to change the color only for bin containing a specific value
- net framework - about button click event and text box display
- Android implementation to dynamically change the color of graphics in shapexml
- tp5 framework addition, deletion, change and search operation example
- vue loop array change the color of click text
- How to change the color of the layer confirm popup button
- opencv convert color space change picture background
- Java swing to achieve the color change effect of the desktop font of the music player
- PyQt4 treewidget choose to change color and set editable method
- net framework - [vbnet] how to replace only within a specific method
- Vue implements the color change function of the current tab by clicking on the navigation bar
- Detailed Python to change the background color of photos (blue background to red background)
- C # use RichTextBox to implement text replacement and change font color function example
- Vue iview-admin framework method to change the second level menu to the third level menu
- net framework - vbnet process management process id acquisition
- net framework - vb associative array
- c # - about file classification of generic class
- net framework - updating datatable with threadingtimer callback does not affect control
- net framework - net tab control, tab color
- net framework - sharing data between datagridviews
- c # - questions about wpf behavior class behaviors and attached behaviors
- net framework - if you do not want to double-execute exe itself (exe)
- how to convert the current vbnet solution to c #