Welcome to WindowsClient.net | Sign in | Join

Here are some frequently asked questions about Windows Forms and their answers.

Windows Forms FAQs

What order do the ToolStrip Renderer events come in?

Generally its this - background, item background, item foregound effects, toolstrip border.

  • OnRenderToolStripBackground
  • OnRender[Label|Button|MenuItem...]Background
  • OnRenderItemText
  • OnRenderItemArrow
  • OnRenderItemImage
  • OnRenderToolStripBorder

The toolstrip border is painted last, as it's sort of a last chance fixup paint if the items happen to go edge to edge.