Provides supporting methods for Control.
| C# | Visual Basic |
public static class ControlHelper
Public NotInheritable Class ControlHelper
| All Members | Methods | Properties | |||
| Icon | Member | Description |
|---|---|---|
| DrawToBitmap(Control, Bitmap, Rectangle) |
Supports rendering to the specified bitmap.
| |
| EnableVisualStyles(Control) |
Enables themed skins for built in controls where available.
| |
| FindForm(Control) |
Retrieves the Form that the control is on.
| |
| GetBackgroundImage(Control) |
Gets the background image displayed in the control.
| |
| GetDesignMode(Control) |
Gets a value indicating whether a control is being used on a design surface.
| |
| Invalidate(Control, Boolean) |
Invalidates the entire surface of the control and causes a paint message to be sent to the control.
Optionally, invalidates the child controls assigned to the control.
| |
| ModifierKeys |
Gets a value indicating which of the modifier keys (SHIFT, CTRL, and ALT) is in a pressed state.
| |
| SetBackgroundImage(Control, Image) |
Sets the background image displayed in the control.
| |
| SetBorder(Control, Boolean) |
Sets whether the control draws a 1 pixel border.
| |
| SetOpacity(Form, Single) |
Gets or sets the opacity level of the form.
| |
| SetTransparencyKey(Form, Color) |
Sets the color that will represent transparent areas of the form.
|
| Object | |
| ControlHelper | |