Edit

Share via


Form.FormCaptionBackColor Property

Definition

Sets or gets the Form's title bar back color (caption back color).

public:
 property System::Drawing::Color FormCaptionBackColor { 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 FormCaptionBackColor { get; set; }
[<System.ComponentModel.Browsable(false)>]
[<System.Diagnostics.CodeAnalysis.Experimental("WFO5001", UrlFormat="https://aka.ms/winforms-warnings/{0}")>]
member this.FormCaptionBackColor : System.Drawing.Color with get, set
Public Property FormCaptionBackColor 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 title bar color.

Attributes

Remarks

Reading this property is only for tracking purposes. If the window's title bar 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 FormCaptionBackColorChanged event is raised accordingly when the value is changed, which allows the property to be participating in binding scenarios.

Applies to