Hi all,
I am trying to work on (another, kind of based on the previous one that I created a few days ago) text editor, and I am attempting to create a custom renderer for the application.
I've been looking over the code from MSDN, and so far I've only been able to get the menubar to have a custom background. I also want to render the toolbar as well, but it seems that there's nothing there at all for it; All that I see is "RenderToolStripBackground",
and all that it does when I render it (using the code below) is format the Menubar. I want to do more than just the menubar.
Private Sub CustomProfessionalRenderer_RenderToolStripBackground(ByVal sender As Object, ByVal e As System.Windows.Forms.ToolStripRenderEventArgs) Handles Me.RenderToolStripBackground
Dim b = New SolidBrush(Color.FromArgb(255, 64, 64, 64))
e.Graphics.FillRectangle(b, e.ToolStrip.Location.X, e.ToolStrip.Location.Y, e.ToolStrip.Width, e.ToolStrip.Height)
b.Dispose()
End Sub
The link to the code from MSDN: http://msdn2.microsoft.com/en-us/library/system.windows.forms.toolstripmanager.renderer.aspx
Thread Closed
This thread is kinda stale and has been closed but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.