System.Windows.Forms.Form.Icon Property

Gets or sets the icon for the form.

Syntax

[System.ComponentModel.AmbientValue(null)]
[System.ComponentModel.Localizable(true)]
public System.Drawing.Icon Icon { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

A form's icon designates the picture that represents the form in the taskbar as well as the icon that is displayed for the control box of the form.

This property will have no effect if Form.FormBorderStyle is set to FormBorderStyle.FixedDialog. In that case, the form will not display an icon.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0