This documentation is archived and is not being maintained.

Form.Icon Property

Gets or sets the icon for the form.

[Visual Basic]
Public Property Icon As Icon
[C#]
public Icon Icon {get; set;}
[C++]
public: __property Icon* get_Icon();
public: __property void set_Icon(Icon*);
[JScript]
public function get Icon() : Icon;
public function set Icon(Icon);

Property Value

An Icon that represents the icon for the form.

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.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

Form Class | Form Members | System.Windows.Forms Namespace | ControlBox

Show: