/// <summary>
 /// Updates the Main Instruction.
 /// </summary>
 /// <param name="mainInstruction">The new value.</param>
 public static void UpdateMainInstructionAsync(IntPtr handle, string mainInstruction)
 {
     // TDE_MAIN_INSTRUCTION
     // TDM_UPDATE_ELEMENT_TEXT             = WM_USER+114, // wParam = element (TASKDIALOG_ELEMENTS), lParam = new element text (LPCWSTR)
     TaskDialogMessageFunctions.SendMessageWithString(
         handle,
         (uint)TaskDialogMessages.UpdateElementText,
         (IntPtr)TaskDialogElements.MainInstruction,
         mainInstruction);
 }
 /// <summary>
 /// Updates the Main Instruction.
 /// </summary>
 /// <param name="mainInstruction">The new value.</param>
 /// <returns>If the function succeeds the return value is true.</returns>
 public static bool SetMainInstructionAsync(IntPtr handle, string mainInstruction)
 {
     // TDE_MAIN_INSTRUCTION
     // TDM_SET_ELEMENT_TEXT                = WM_USER+108  // wParam = element (TASKDIALOG_ELEMENTS), lParam = new element text (LPCWSTR)
     return(TaskDialogMessageFunctions.SendMessageWithString(
                handle,
                (uint)TaskDialogMessages.SetElementText,
                (IntPtr)TaskDialogElements.MainInstruction,
                mainInstruction) != IntPtr.Zero);
 }
 /// <summary>
 /// Updates the content text.
 /// </summary>
 /// <param name="content">The new value.</param>
 public static void UpdateContentAsync(IntPtr handle, string content)
 {
     // TDE_CONTENT,
     // TDM_UPDATE_ELEMENT_TEXT             = WM_USER+114, // wParam = element (TASKDIALOG_ELEMENTS), lParam = new element text (LPCWSTR)
     TaskDialogMessageFunctions.SendMessageWithString(
         handle,
         (uint)TaskDialogMessages.UpdateElementText,
         (IntPtr)TaskDialogElements.Content,
         content);
 }
 /// <summary>
 /// Updates the content text.
 /// </summary>
 /// <param name="content">The new value.</param>
 /// <returns>If the function succeeds the return value is true.</returns>
 public static bool SetContentAsync(IntPtr handle, string content)
 {
     // TDE_CONTENT,
     // TDM_SET_ELEMENT_TEXT                = WM_USER+108  // wParam = element (TASKDIALOG_ELEMENTS), lParam = new element text (LPCWSTR)
     return(TaskDialogMessageFunctions.SendMessageWithString(
                handle,
                (uint)TaskDialogMessages.SetElementText,
                (IntPtr)TaskDialogElements.Content,
                content) != IntPtr.Zero);
 }