Note: This class is new in the .NET Framework version 2.0.
Provides VisualStyleElement objects for the different states of the group box control. This class cannot be inherited.
Namespace: System.Windows.Forms.VisualStyles Assembly: System.Windows.Forms (in system.windows.forms.dll)
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned by the Normal property. To run this example, paste it into a Windows Form. Handle the form’s Paint event and call the DrawVisualStyleElement_Button_GroupBox1 method from the Paint event-handling method, passing e as PaintEventArgs.