TaskDialog Class
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.
A task dialog allows to display information and get simple input from the user. It is similar to a MessageBox (in that it is formatted by the operating system) but provides a lot more features.
public ref class TaskDialog : System::Windows::Forms::IWin32Window
public class TaskDialog : System.Windows.Forms.IWin32Window
type TaskDialog = class
interface IWin32Window
Public Class TaskDialog
Implements IWin32Window
- Inheritance
-
TaskDialog
- Implements
Remarks
For more information, see About Task Dialogs.
Note
In order to use the dialog, you need ensure EnableVisualStyles() has been called before showing the dialog, or the application needs to be compiled with a manifest that contains a dependency to Microsoft.Windows.Common-Controls (6.0.0.0). Additionally, the current thread should use the single-threaded apartment (STA) model.
Properties
Handle |
Gets the window handle of the task dialog window, or Zero if the dialog is currently not being shown. |
Methods
Close() |
Closes the shown task dialog with Cancel as resulting button. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
ShowDialog(IntPtr, TaskDialogPage, TaskDialogStartupLocation) |
Shows the task dialog with the specified owner. |
ShowDialog(IWin32Window, TaskDialogPage, TaskDialogStartupLocation) |
Shows the task dialog with the specified owner. |
ShowDialog(TaskDialogPage, TaskDialogStartupLocation) |
Shows the task dialog. |
ShowDialogAsync(IntPtr, TaskDialogPage, TaskDialogStartupLocation) |
Shows the task dialog with the specified owner asynchronously. |
ShowDialogAsync(IWin32Window, TaskDialogPage, TaskDialogStartupLocation) |
Shows the task dialog with the specified owner asynchronously. |
ShowDialogAsync(TaskDialogPage, TaskDialogStartupLocation) |
Shows the task dialog with the specified owner asynchronously. |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |