public void Close() { TaskDialog newDlg = new TaskDialog("Installation complete.", "Bluepill", "You can now log off and log back on."); newDlg.CustomButtons = new CustomButton[] { new CustomButton(CommonButtonResult.Cancel, "Close") }; dlg.Navigate(newDlg); }