Draws the background for a System.Windows.Forms.ToolStrip.
- e
- A System.Windows.Forms.ToolStripRenderEventArgs that contains the data to draw the background for the System.Windows.Forms.ToolStrip.
The ToolStripRenderer.DrawToolStripBackground(ToolStripRenderEventArgs) method provides the entry point to the rendering code for the background of a System.Windows.Forms.ToolStrip. Use this method to draw the background of a System.Windows.Forms.ToolStrip when overriding the ToolStrip.OnPaintBackground(PaintEventArgs) method, or to force the background of a System.Windows.Forms.ToolStrip to be drawn in a custom System.Windows.Forms.ToolStripRenderer. To change the way the background of a System.Windows.Forms.ToolStrip is rendered, override the ToolStripRenderer.OnRenderToolStripBackground(ToolStripRenderEventArgs) method in a class derived from System.Windows.Forms.ToolStripRenderer.