ToolStripManager::RenderMode Property

 

Gets or sets the default theme for the form.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
property ToolStripManagerRenderMode RenderMode {
	static ToolStripManagerRenderMode get();
	[UIPermissionAttribute(SecurityAction::Demand, Window = UIPermissionWindow::AllWindows)]
	static void set(ToolStripManagerRenderMode value);
}

Exception Condition
InvalidEnumArgumentException

The set value was not one of the ToolStripManagerRenderMode values.

NotSupportedException

ToolStripManagerRenderMode is set to Custom; use the Renderer property instead.

Use the RenderMode property to get or set whether the application is painted by the ToolStripProfessionalRenderer, the ToolStripSystemRenderer, or a customized ToolStripRenderer.

The following code example demonstrates a use of the RenderMode property. This example is part of a larger example provided for the Renderer property.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: