Visual Basic Reference
Returns the icon displayed when a form is minimized at run time.
The object placeholder represents an object expression that evaluates to an object in the Applies To list.
Use this property to specify an icon for any form that the user can minimize at run time.
For example, you can assign a unique icon to a form to indicate the form's function. Specify the icon by loading it using the Properties window at design time. The file you load must have the .ico filename extension and format. If you don't specify an icon, the Visual Basic default icon for forms is used.
You can use the Visual Basic Icon Library (in the Icons subdirectory) as a source for icons. When you create an executable file, you can assign an icon to the application by using the Icon property of any form in that application.
Note You can see a form's icon in Windows 95/98 in the upper left corner of the form, or when the form is minimized in Windows 95/98 and Windows NT. If the form is minimized, the BorderStyle property must be set to either 1 (Fixed Single) or 2 (Sizable) and the MinButton property must be set to True for the icon to be visible.
At run time, you can assign an object's Icon property to another object's DragIcon or Icon property. You can also assign an icon returned by the LoadPicture function. Using LoadPicture without an argument assigns an empty (null) icon to the form, which enables you to draw on the icon at run time.