Note
This method is supported on Windows only.
public static Icon FromFile(
string fileName,
int id
)Public Shared Function FromFile (
fileName As String,
id As Integer
) As Iconpublic:
static Icon^ FromFile(
String^ fileName,
int id
)static member FromFile :
fileName : string *
id : int -> Icon If fileName refers to an icon file it is recommended to use the Icon(String) constructor instead.
The images of an Icon can be extracted by the IconExtensions.ExtractBitmaps methods.
If fileName has no full path, then it refers to a system library. For example, Icons.FromFile("shell32", 13) loads a chip icon from shell32.dll.