Jump to content

Recommended Posts

Posted

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

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...