Export (0) Print
Expand All

Form.Icon Property

Gets or sets the icon for the form.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

[LocalizableAttribute(true)] 
public Icon Icon { get; set; }
/** @property */
public Icon get_Icon ()

/** @property */
public void set_Icon (Icon value)

public function get Icon () : Icon

public function set Icon (value : Icon)

Not applicable.

Property Value

An Icon that represents the icon for the form.

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 FormBorderStyle is set to FixedDialog. In that case, the form will not display an icon.

Windows Mobile 2003 for Pocket PC, Windows Mobile 2003 for Smartphone, Windows CE Platform Note: This property is not used in Windows Mobile software for Pocket PCs and Smartphones, but it can be used in Windows CE.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 2.0, 1.0

Community Additions

ADD
Show:
© 2014 Microsoft