OkCancelButtonsAutoScale Property

Gets or sets whether the buttons and their panel should be automatically scaled depending on the current DPI settings, regardless of the auto-scaling of the current framework or the AutoScaleMode of the form.
Default value: .

Definition

Namespace: KGySoft.WinForms.Controls
Assembly: KGySoft.WinForms (in KGySoft.WinForms.dll) Version: 5.0.1
C#
[DefaultValueAttribute(true)]
public bool AutoScale { get; set; }

Property Value

Boolean

Remarks

Even if this property is set to , the current executing platform still may scale the buttons with more or less success.

This property does not affect the font of the buttons, which are auto-scaled regardless of this property. To turn off auto-scaling the font, set the AutoScaleFont property of the OKButton, CancelButton and ApplyButton properties.

See Also