This documentation is archived and is not being maintained.

ApplicationIcon Property

Visual Studio .NET 2003

Returns or sets the path and file name of the icon file.

[Visual Basic .NET]
Public Property ApplicationIcon() As String
[Visual Basic 6]
Property Get ApplicationIcon() As String
Property Let ApplicationIcon( _
   ByVal IconPath As String _
HRESULT __stdcall get_ApplicationIcon(
   /* [out, retval] */ BSTR* retVal
HRESULT __stdcall put_ApplicationIcon(
   /* [in] */ BSTR IconPath
string ApplicationIcon {get; set;}
[JScript .NET]
public function get ApplicationIcon() : String
public function set ApplicationIcon(
   IconPath: String


Path and file name of icon file. This file must be an .ico file. If the icon file does not exist in the project directory, the IconPath must include the full path to the file. Use an empty string to specify that the project has no special application icon.

Return Value

String. The returned value contains only the file name of the icon file, without the path.


The icon file is copied to the project folder, if it is not already there, and inserted into the output file. Since the icon file exists in the project directory, the path is removed from the property string.


See ProjectType Property.

See Also

Build, Common Properties, <Projectname> Property Pages Dialog Box (Visual Basic) | General, Common Properties, <Projectname> Property Pages Dialog Box (Visual C#)

Applies To: Properties Property (General Extensibility) | Properties Property (Visual Basic and Visual C# Project Object)