oh well,

it must be of course :

Code:
$frmMain.Icon = "[PATH\]youricon.ico"



Quote from the manual :

Quote:

Description
Sets the icon that is displayed by the object.

Syntax
$Object.Icon = String

$Object.Icon = Number

Values
String - A string value specifying the fully qualified path of an ICO file.

Number - A numeric value specifying the index number of a builtin icon. Use the icon viewer script (icons.kix) for an up-to-date list of icons.



_________________________