Class FormsExtensions
Extensions for Windows Form
Inheritance
System.Object
FormsExtensions
Namespace: Dapplo.Windows.Dpi.Forms
Assembly: Dapplo.Windows.Dpi.dll
Syntax
public static class FormsExtensions : object
Methods
| Improve this Doc View SourceAttachFormDpiHandler(Control)
Handle DPI changes for the specified Control (Form, ContextMenu etc) Using this DOES NOT enable dpi scaling in the non client area, for this you will need to call: DpiHandler.TryEnableNonClientDpiScaling(this.Handle) from the WndProc in the WM_NCCREATE message. It's better to extend DpiAwareForm, which does this for you.
Declaration
public static DpiHandler AttachFormDpiHandler(this Control control)
Parameters
Type | Name | Description |
---|---|---|
Control | control | Control |
Returns
Type | Description |
---|---|
DpiHandler | DpiHandler |