TaskDialogIcon Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
TaskDialogIcon(Bitmap) |
Initializes a new instance of the TaskDialogIcon class from an Bitmap instance. |
TaskDialogIcon(Icon) |
Initializes a new instance of the TaskDialogIcon class from an Icon instance. |
TaskDialogIcon(IntPtr) |
Initializes a new instance of the TaskDialogIcon class from an icon handle. |
TaskDialogIcon(Bitmap)
- Source:
- TaskDialogIcon.cs
- Source:
- TaskDialogIcon.cs
- Source:
- TaskDialogIcon.cs
Initializes a new instance of the TaskDialogIcon class from an Bitmap instance.
public:
TaskDialogIcon(System::Drawing::Bitmap ^ image);
public TaskDialogIcon (System.Drawing.Bitmap image);
new System.Windows.Forms.TaskDialogIcon : System.Drawing.Bitmap -> System.Windows.Forms.TaskDialogIcon
Public Sub New (image As Bitmap)
Parameters
Exceptions
image
is null
.
Remarks
The Icon instance from which this TaskDialogIcon instance is created must not be disposed while the icon is shown in the task dialog.
Applies to
TaskDialogIcon(Icon)
- Source:
- TaskDialogIcon.cs
- Source:
- TaskDialogIcon.cs
- Source:
- TaskDialogIcon.cs
Initializes a new instance of the TaskDialogIcon class from an Icon instance.
public:
TaskDialogIcon(System::Drawing::Icon ^ icon);
public TaskDialogIcon (System.Drawing.Icon icon);
new System.Windows.Forms.TaskDialogIcon : System.Drawing.Icon -> System.Windows.Forms.TaskDialogIcon
Public Sub New (icon As Icon)
Parameters
Exceptions
icon
is null
.
Remarks
The Icon instance from which this TaskDialogIcon instance is created must not be disposed while the icon is shown in the task dialog.
Applies to
TaskDialogIcon(IntPtr)
- Source:
- TaskDialogIcon.cs
- Source:
- TaskDialogIcon.cs
- Source:
- TaskDialogIcon.cs
Initializes a new instance of the TaskDialogIcon class from an icon handle.
public:
TaskDialogIcon(IntPtr iconHandle);
public TaskDialogIcon (IntPtr iconHandle);
new System.Windows.Forms.TaskDialogIcon : nativeint -> System.Windows.Forms.TaskDialogIcon
Public Sub New (iconHandle As IntPtr)
Parameters
Remarks
The specified icon handle must not be released while the icon is shown in the task dialog.