NewsBot Posted March 5, 2008 Posted March 5, 2008 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 (In before "Use BackColor";* I want the program to have a unique appearance but not crazy >_>) More... View All Our Microsoft Related Feeds Quote View All Our Microsft Related Feeds
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.