To change the menu strip color just open vb.net, create a new windows form application, and on form1 add menu strip, and type in the follow code:
'written by developer: Amar Tufo
Public Class Form1
Inherits Form
Public Sub New()
Try
' initialize added component on form1, which is menu strip;
'note: if you have added any second component alongside menu
'strip, such as context menu strip just add additional code
'line under InitializeComponent(), and it will work;
InitializeComponent()
MenuStrip1.Renderer = New MyRenderer()
Catch ex As Exception
End Try
End Sub
Public Class MyRenderer
Inherits ToolStripProfessionalRenderer
Protected Overloads Overrides Sub OnRenderMenuItemBackground(ByVal e As ToolStripItemRenderEventArgs)
Try
Dim rc As New Rectangle(Point.Empty, e.Item.Size)
Dim c As Color = IIf(e.Item.Selected, Color.DodgerBlue, Color.Red)
Using brush As New SolidBrush(c)
e.Graphics.FillRectangle(brush, rc)
End Using
Catch ex As Exception
End Try
End Sub
End Class
this part of code must be inserted on form1 alongside menu strip you previously added on form, but it must be added with exception try handling in order to skip any bug or error in your application.