Method SetIcon
| Edit this page View SourceSetIcon(nint, IconId)
Sets the icon for the window, using the specified icon ID.
Declaration
public static void SetIcon(nint hwnd, IconId iconId)
Parameters
Type | Name | Description |
---|---|---|
nint | hwnd | Window handle |
IconId | iconId | The ID of the icon. |
SetIcon(nint, string)
Sets the icon for the window, using the specified icon path.
Declaration
public static void SetIcon(nint hwnd, string iconPath)
Parameters
Type | Name | Description |
---|---|---|
nint | hwnd | Window handle |
string | iconPath | The path of the icon. |