KGySoft.WinForms Namespace

The KGySoft.WinForms namespace contains some general, WinForms-specific types, extensions and helper classes that can be used in a Windows Forms application. It is also the container of the KGySoft.WinForms.Components, KGySoft.WinForms.Controls and KGySoft.WinForms.Forms namespaces.

Remarks

Classes

AsyncTaskBase Represents a cancellable and completable asynchronous task that can be used even in frameworks that do not support the and keywords.
ContentAlignmentExtensions Extension methods for the ContentAlignment enumeration.
ControlExtensions Extension methods for the Control class.
EventHandlerExtensions Provides extension methods for the EventHandlerList type.
HyperlinkClickedEventArgs Provides data for the TaskDialog.HyperlinkClicked and AdvancedLabel.HyperlinkClicked events.
LocalizationContext Represents the context of a localization operation that provides information for the LocalizationRequested event, and can determine the source of the resources for dynamic automatic localization.
LocalizationHelper Provides members to localize Windows Forms controls and other objects. The ApplyStringResources method is automatically called by BaseForm and BaseUserControl instances if their DynamicStringLocalization property is set to a non-default value. The LocalizationRequested event can be handled to redirect the localization requests to a custom resource manager, or to set the value for a given key programmatically.

See the online help of the BaseForm.DynamicStringLocalization property for an example.
LocalizationRequestedEventArgs Provides data for the LocalizationRequested event.
OSHelper Provides operating system related helper properties and methods.
RectangleExtensions Provides extension methods for the Rectangle structure.
ScaleHelper A helper class containing members for high DPI scaling, especially when using per-monitor DPI awareness.
Screenshot Provides methods to capture screenshots.
TreeNodeExtensions Provides extension methods for the TreeNode class.
VisualStyleHelper Provides helper methods for working with visual styles. Unlike the public members of the VisualStyleRenderer class, it supports high-DPI or custom themed styles (e.g. Windows 10+ dark theme), newer theme classes (e.g. DatePicker), and some additional visual style values, such as font properties.
WinFormsModule Represents the KGySoft.WinForms module.
See the Remarks section of the Initialize method for details.

Interfaces

ICustomLocalizable Represents a custom localizable control that can be localized by LocalizationHelper.
IReadOnlyCapable Represents a read-only capable control.
ISupportsFadingTState Represents a control that supports buffered fading animations based on a custom state type.
IToolTipTargetProvider Represents a target control provider for tooltips. It is used by LocalizationHelper for ToolTipText properties.

Enumerations

DynamicStringLocalization Represents the possible modes of dynamic string localization for forms and user controls derived from BaseForm and BaseUserControl.

See the online help of the BaseForm.DynamicStringLocalization property for an example.
HyperlinkResolveMode Represents hyperlink resolve modes.
IconSizeMode Represents the possible Icon sizing modes.
ProgressBarState Represents possible progress bar states.

See the online help of the AdvancedProgressBar class for an animated image example.