Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
1 out of 1 rated this helpful - Rate this topic

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 _
) 
[C++]
HRESULT __stdcall get_ApplicationIcon(
   /* [out, retval] */ BSTR* retVal
);
HRESULT __stdcall put_ApplicationIcon(
   /* [in] */ BSTR IconPath
);
[C#]
string ApplicationIcon {get; set;}
[JScript .NET]
public function get ApplicationIcon() : String
public function set ApplicationIcon(
   IconPath: String
)

Parameters

IconPath
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.

Remarks

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.

Example

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)

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.