Edit

Share via


Form.FormBorderColor Property

Definition

Sets or gets the Form's border color.

public:
 property System::Drawing::Color FormBorderColor { System::Drawing::Color get(); void set(System::Drawing::Color value); };
[System.ComponentModel.Browsable(false)]
[System.Diagnostics.CodeAnalysis.Experimental("WFO5001", UrlFormat="https://aka.ms/winforms-warnings/{0}")]
public System.Drawing.Color FormBorderColor { get; set; }
[<System.ComponentModel.Browsable(false)>]
[<System.Diagnostics.CodeAnalysis.Experimental("WFO5001", UrlFormat="https://aka.ms/winforms-warnings/{0}")>]
member this.FormBorderColor : System.Drawing.Color with get, set
Public Property FormBorderColor As Color

Property Value

The Color which has be previously set using this property or Empty. Note that the underlying Win32 API does not provide a reliable mechanism to retrieve the current border color.

Attributes

Remarks

Note: Reading this property is only for tracking purposes. If the Form's border color is changed through other external means (Win32 calls), reading this property will not reflect those changes, as the Win32 API does not provide a mechanism to retrieve the current title bar color.

The property only reflects the value that was previously set using this property. The FormBorderColorChanged event is raised accordingly when the value is changed, which allows the property to be participating in binding scenarios.

Applies to