Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

TaskDialog for WinForms

, 5 Jan 2007
Using Vista Task Dialog from WinForms - here is some code to do it.
namespace FormPlay
{
    partial class Form1
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
            this.TaskDialogButton = new System.Windows.Forms.Button();
            this.label6 = new System.Windows.Forms.Label();
            this.label7 = new System.Windows.Forms.Label();
            this.mainInstructionTextBox = new System.Windows.Forms.TextBox();
            this.windowTitle = new System.Windows.Forms.TextBox();
            this.okCheckBox = new System.Windows.Forms.CheckBox();
            this.label8 = new System.Windows.Forms.Label();
            this.yesCheckBox = new System.Windows.Forms.CheckBox();
            this.NoCheckBox = new System.Windows.Forms.CheckBox();
            this.cancelCheckBox = new System.Windows.Forms.CheckBox();
            this.retryCheckBox = new System.Windows.Forms.CheckBox();
            this.noneRadioButton = new System.Windows.Forms.RadioButton();
            this.informationRadioButton = new System.Windows.Forms.RadioButton();
            this.warningRadioButton = new System.Windows.Forms.RadioButton();
            this.errorRadioButton = new System.Windows.Forms.RadioButton();
            this.ReturnedButtonLabel = new System.Windows.Forms.Label();
            this.label5 = new System.Windows.Forms.Label();
            this.contentTextBox = new System.Windows.Forms.TextBox();
            this.footerIconError = new System.Windows.Forms.RadioButton();
            this.footerIconWarning = new System.Windows.Forms.RadioButton();
            this.footerIconInfo = new System.Windows.Forms.RadioButton();
            this.footerIconNone = new System.Windows.Forms.RadioButton();
            this.enableHyperlinksCheckBox = new System.Windows.Forms.CheckBox();
            this.groupBox2 = new System.Windows.Forms.GroupBox();
            this.label10 = new System.Windows.Forms.Label();
            this.defaultButtonTextBox = new System.Windows.Forms.TextBox();
            this.buttonTextBox3 = new System.Windows.Forms.TextBox();
            this.buttonTextBox2 = new System.Windows.Forms.TextBox();
            this.buttonTextBox1 = new System.Windows.Forms.TextBox();
            this.buttonIDTextBox3 = new System.Windows.Forms.TextBox();
            this.buttonIDTextBox2 = new System.Windows.Forms.TextBox();
            this.buttonIDTextBox1 = new System.Windows.Forms.TextBox();
            this.label9 = new System.Windows.Forms.Label();
            this.label4 = new System.Windows.Forms.Label();
            this.expandedInfoTextBox = new System.Windows.Forms.TextBox();
            this.label3 = new System.Windows.Forms.Label();
            this.footerTextBox = new System.Windows.Forms.TextBox();
            this.groupBox4 = new System.Windows.Forms.GroupBox();
            this.groupBox3 = new System.Windows.Forms.GroupBox();
            this.showProgressBarCheckBox = new System.Windows.Forms.CheckBox();
            this.progressWithTimerCheckBox = new System.Windows.Forms.CheckBox();
            this.autoCancelCheckBox = new System.Windows.Forms.CheckBox();
            this.allowCancelCheckBox = new System.Windows.Forms.CheckBox();
            this.expandedByDefaultCheckBox = new System.Windows.Forms.CheckBox();
            this.expandedFooterCheckBox = new System.Windows.Forms.CheckBox();
            this.positionRelativeToWindowCheckBox = new System.Windows.Forms.CheckBox();
            this.showMarqueeCheckBox = new System.Windows.Forms.CheckBox();
            this.UseCommandLinksCheckBox = new System.Windows.Forms.CheckBox();
            this.useCommandLinksNoIconCheckBox = new System.Windows.Forms.CheckBox();
            this.label1 = new System.Windows.Forms.Label();
            this.verficationFlagTextBox = new System.Windows.Forms.TextBox();
            this.verifyFlagCheckBox = new System.Windows.Forms.CheckBox();
            this.label2 = new System.Windows.Forms.Label();
            this.expandedControlTextBox = new System.Windows.Forms.TextBox();
            this.label11 = new System.Windows.Forms.Label();
            this.collapsedControlTextBox = new System.Windows.Forms.TextBox();
            this.RightToLeftLayoutCheckbox = new System.Windows.Forms.CheckBox();
            this.NoDefaultRadioButtonCheckBox = new System.Windows.Forms.CheckBox();
            this.CanBeMinimizedCheckBox = new System.Windows.Forms.CheckBox();
            this.label12 = new System.Windows.Forms.Label();
            this.defaultRadioButtonTextBox = new System.Windows.Forms.TextBox();
            this.radioButtonIDTextBox3 = new System.Windows.Forms.TextBox();
            this.radioButtonIDTextBox2 = new System.Windows.Forms.TextBox();
            this.radioButtonIDTextBox1 = new System.Windows.Forms.TextBox();
            this.label13 = new System.Windows.Forms.Label();
            this.radioButtonTextBox3 = new System.Windows.Forms.TextBox();
            this.radioButtonTextBox2 = new System.Windows.Forms.TextBox();
            this.groupBox1 = new System.Windows.Forms.GroupBox();
            this.radioButtonTextBox1 = new System.Windows.Forms.TextBox();
            this.label14 = new System.Windows.Forms.Label();
            this.closeCheckBox = new System.Windows.Forms.CheckBox();
            this.shieldRadioButton = new System.Windows.Forms.RadioButton();
            this.footerIconShield = new System.Windows.Forms.RadioButton();
            this.groupBox2.SuspendLayout();
            this.groupBox4.SuspendLayout();
            this.groupBox3.SuspendLayout();
            this.groupBox1.SuspendLayout();
            this.SuspendLayout();
            // 
            // TaskDialogButton
            // 
            this.TaskDialogButton.Location = new System.Drawing.Point(471, 678);
            this.TaskDialogButton.Name = "TaskDialogButton";
            this.TaskDialogButton.Size = new System.Drawing.Size(117, 23);
            this.TaskDialogButton.TabIndex = 40;
            this.TaskDialogButton.Text = "Show Task Dialog...";
            this.TaskDialogButton.Click += new System.EventHandler(this.TaskDialogButton_Click);
            // 
            // label6
            // 
            this.label6.AutoSize = true;
            this.label6.Location = new System.Drawing.Point(12, 32);
            this.label6.Name = "label6";
            this.label6.Size = new System.Drawing.Size(82, 13);
            this.label6.TabIndex = 12;
            this.label6.Text = "Main Instruction";
            // 
            // label7
            // 
            this.label7.AutoSize = true;
            this.label7.Location = new System.Drawing.Point(12, 9);
            this.label7.Name = "label7";
            this.label7.Size = new System.Drawing.Size(69, 13);
            this.label7.TabIndex = 11;
            this.label7.Text = "Window Title";
            // 
            // mainInstructionTextBox
            // 
            this.mainInstructionTextBox.Location = new System.Drawing.Point(103, 32);
            this.mainInstructionTextBox.Multiline = true;
            this.mainInstructionTextBox.Name = "mainInstructionTextBox";
            this.mainInstructionTextBox.Size = new System.Drawing.Size(391, 59);
            this.mainInstructionTextBox.TabIndex = 2;
            this.mainInstructionTextBox.Text = "Your Ki or Chi does not appear to be aligned. Would you like to align it?";
            // 
            // windowTitle
            // 
            this.windowTitle.Location = new System.Drawing.Point(103, 6);
            this.windowTitle.Name = "windowTitle";
            this.windowTitle.Size = new System.Drawing.Size(391, 20);
            this.windowTitle.TabIndex = 1;
            this.windowTitle.Text = "Task Dialog Test";
            // 
            // okCheckBox
            // 
            this.okCheckBox.AutoSize = true;
            this.okCheckBox.Location = new System.Drawing.Point(229, 55);
            this.okCheckBox.Name = "okCheckBox";
            this.okCheckBox.Size = new System.Drawing.Size(41, 17);
            this.okCheckBox.TabIndex = 19;
            this.okCheckBox.Text = "OK";
            // 
            // label8
            // 
            this.label8.AutoSize = true;
            this.label8.Location = new System.Drawing.Point(10, 16);
            this.label8.Name = "label8";
            this.label8.Size = new System.Drawing.Size(18, 13);
            this.label8.TabIndex = 14;
            this.label8.Text = "ID";
            // 
            // yesCheckBox
            // 
            this.yesCheckBox.AutoSize = true;
            this.yesCheckBox.Location = new System.Drawing.Point(229, 32);
            this.yesCheckBox.Name = "yesCheckBox";
            this.yesCheckBox.Size = new System.Drawing.Size(44, 17);
            this.yesCheckBox.TabIndex = 17;
            this.yesCheckBox.Text = "Yes";
            // 
            // NoCheckBox
            // 
            this.NoCheckBox.AutoSize = true;
            this.NoCheckBox.Location = new System.Drawing.Point(281, 32);
            this.NoCheckBox.Name = "NoCheckBox";
            this.NoCheckBox.Size = new System.Drawing.Size(40, 17);
            this.NoCheckBox.TabIndex = 18;
            this.NoCheckBox.Text = "No";
            // 
            // cancelCheckBox
            // 
            this.cancelCheckBox.AutoSize = true;
            this.cancelCheckBox.Location = new System.Drawing.Point(281, 55);
            this.cancelCheckBox.Name = "cancelCheckBox";
            this.cancelCheckBox.Size = new System.Drawing.Size(59, 17);
            this.cancelCheckBox.TabIndex = 20;
            this.cancelCheckBox.Text = "Cancel";
            // 
            // retryCheckBox
            // 
            this.retryCheckBox.AutoSize = true;
            this.retryCheckBox.Location = new System.Drawing.Point(229, 78);
            this.retryCheckBox.Name = "retryCheckBox";
            this.retryCheckBox.Size = new System.Drawing.Size(51, 17);
            this.retryCheckBox.TabIndex = 21;
            this.retryCheckBox.Text = "Retry";
            // 
            // noneRadioButton
            // 
            this.noneRadioButton.AutoSize = true;
            this.noneRadioButton.Checked = true;
            this.noneRadioButton.Location = new System.Drawing.Point(10, 19);
            this.noneRadioButton.Name = "noneRadioButton";
            this.noneRadioButton.Size = new System.Drawing.Size(51, 17);
            this.noneRadioButton.TabIndex = 3;
            this.noneRadioButton.TabStop = true;
            this.noneRadioButton.Text = "None";
            // 
            // informationRadioButton
            // 
            this.informationRadioButton.AutoSize = true;
            this.informationRadioButton.Location = new System.Drawing.Point(10, 42);
            this.informationRadioButton.Name = "informationRadioButton";
            this.informationRadioButton.Size = new System.Drawing.Size(77, 17);
            this.informationRadioButton.TabIndex = 4;
            this.informationRadioButton.Text = "Information";
            // 
            // warningRadioButton
            // 
            this.warningRadioButton.AutoSize = true;
            this.warningRadioButton.Location = new System.Drawing.Point(10, 65);
            this.warningRadioButton.Name = "warningRadioButton";
            this.warningRadioButton.Size = new System.Drawing.Size(65, 17);
            this.warningRadioButton.TabIndex = 5;
            this.warningRadioButton.Text = "Warning";
            // 
            // errorRadioButton
            // 
            this.errorRadioButton.AutoSize = true;
            this.errorRadioButton.Location = new System.Drawing.Point(10, 88);
            this.errorRadioButton.Name = "errorRadioButton";
            this.errorRadioButton.Size = new System.Drawing.Size(47, 17);
            this.errorRadioButton.TabIndex = 6;
            this.errorRadioButton.Text = "Error";
            // 
            // ReturnedButtonLabel
            // 
            this.ReturnedButtonLabel.ForeColor = System.Drawing.SystemColors.InfoText;
            this.ReturnedButtonLabel.Location = new System.Drawing.Point(12, 704);
            this.ReturnedButtonLabel.Name = "ReturnedButtonLabel";
            this.ReturnedButtonLabel.Size = new System.Drawing.Size(577, 13);
            this.ReturnedButtonLabel.TabIndex = 26;
            this.ReturnedButtonLabel.Text = "Not run";
            this.ReturnedButtonLabel.TextAlign = System.Drawing.ContentAlignment.TopRight;
            // 
            // label5
            // 
            this.label5.AutoSize = true;
            this.label5.Location = new System.Drawing.Point(12, 96);
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size(44, 13);
            this.label5.TabIndex = 28;
            this.label5.Text = "Content";
            // 
            // contentTextBox
            // 
            this.contentTextBox.Location = new System.Drawing.Point(103, 96);
            this.contentTextBox.Multiline = true;
            this.contentTextBox.Name = "contentTextBox";
            this.contentTextBox.Size = new System.Drawing.Size(391, 72);
            this.contentTextBox.TabIndex = 7;
            this.contentTextBox.Text = resources.GetString("contentTextBox.Text");
            // 
            // footerIconError
            // 
            this.footerIconError.AutoSize = true;
            this.footerIconError.Location = new System.Drawing.Point(10, 88);
            this.footerIconError.Name = "footerIconError";
            this.footerIconError.Size = new System.Drawing.Size(47, 17);
            this.footerIconError.TabIndex = 38;
            this.footerIconError.Text = "Error";
            // 
            // footerIconWarning
            // 
            this.footerIconWarning.AutoSize = true;
            this.footerIconWarning.Location = new System.Drawing.Point(10, 65);
            this.footerIconWarning.Name = "footerIconWarning";
            this.footerIconWarning.Size = new System.Drawing.Size(65, 17);
            this.footerIconWarning.TabIndex = 37;
            this.footerIconWarning.Text = "Warning";
            // 
            // footerIconInfo
            // 
            this.footerIconInfo.AutoSize = true;
            this.footerIconInfo.Location = new System.Drawing.Point(10, 42);
            this.footerIconInfo.Name = "footerIconInfo";
            this.footerIconInfo.Size = new System.Drawing.Size(77, 17);
            this.footerIconInfo.TabIndex = 36;
            this.footerIconInfo.Text = "Information";
            // 
            // footerIconNone
            // 
            this.footerIconNone.AutoSize = true;
            this.footerIconNone.Checked = true;
            this.footerIconNone.Location = new System.Drawing.Point(10, 19);
            this.footerIconNone.Name = "footerIconNone";
            this.footerIconNone.Size = new System.Drawing.Size(51, 17);
            this.footerIconNone.TabIndex = 35;
            this.footerIconNone.TabStop = true;
            this.footerIconNone.Text = "None";
            // 
            // enableHyperlinksCheckBox
            // 
            this.enableHyperlinksCheckBox.AutoSize = true;
            this.enableHyperlinksCheckBox.Checked = true;
            this.enableHyperlinksCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
            this.enableHyperlinksCheckBox.Location = new System.Drawing.Point(383, 255);
            this.enableHyperlinksCheckBox.Name = "enableHyperlinksCheckBox";
            this.enableHyperlinksCheckBox.Size = new System.Drawing.Size(111, 17);
            this.enableHyperlinksCheckBox.TabIndex = 23;
            this.enableHyperlinksCheckBox.Text = "Enable Hyperlinks";
            // 
            // groupBox2
            // 
            this.groupBox2.Controls.Add(this.closeCheckBox);
            this.groupBox2.Controls.Add(this.label10);
            this.groupBox2.Controls.Add(this.defaultButtonTextBox);
            this.groupBox2.Controls.Add(this.buttonTextBox3);
            this.groupBox2.Controls.Add(this.buttonTextBox2);
            this.groupBox2.Controls.Add(this.buttonTextBox1);
            this.groupBox2.Controls.Add(this.buttonIDTextBox3);
            this.groupBox2.Controls.Add(this.buttonIDTextBox2);
            this.groupBox2.Controls.Add(this.buttonIDTextBox1);
            this.groupBox2.Controls.Add(this.useCommandLinksNoIconCheckBox);
            this.groupBox2.Controls.Add(this.label9);
            this.groupBox2.Controls.Add(this.UseCommandLinksCheckBox);
            this.groupBox2.Controls.Add(this.label8);
            this.groupBox2.Controls.Add(this.yesCheckBox);
            this.groupBox2.Controls.Add(this.okCheckBox);
            this.groupBox2.Controls.Add(this.NoCheckBox);
            this.groupBox2.Controls.Add(this.cancelCheckBox);
            this.groupBox2.Controls.Add(this.retryCheckBox);
            this.groupBox2.Location = new System.Drawing.Point(12, 250);
            this.groupBox2.Name = "groupBox2";
            this.groupBox2.Size = new System.Drawing.Size(349, 155);
            this.groupBox2.TabIndex = 9;
            this.groupBox2.TabStop = false;
            this.groupBox2.Text = "Buttons";
            // 
            // label10
            // 
            this.label10.AutoSize = true;
            this.label10.Location = new System.Drawing.Point(233, 114);
            this.label10.Name = "label10";
            this.label10.Size = new System.Drawing.Size(41, 13);
            this.label10.TabIndex = 25;
            this.label10.Text = "Default";
            // 
            // defaultButtonTextBox
            // 
            this.defaultButtonTextBox.Location = new System.Drawing.Point(276, 111);
            this.defaultButtonTextBox.Name = "defaultButtonTextBox";
            this.defaultButtonTextBox.Size = new System.Drawing.Size(41, 20);
            this.defaultButtonTextBox.TabIndex = 22;
            this.defaultButtonTextBox.Text = "0";
            // 
            // buttonTextBox3
            // 
            this.buttonTextBox3.Location = new System.Drawing.Point(59, 84);
            this.buttonTextBox3.Name = "buttonTextBox3";
            this.buttonTextBox3.Size = new System.Drawing.Size(155, 20);
            this.buttonTextBox3.TabIndex = 14;
            // 
            // buttonTextBox2
            // 
            this.buttonTextBox2.Location = new System.Drawing.Point(60, 58);
            this.buttonTextBox2.Name = "buttonTextBox2";
            this.buttonTextBox2.Size = new System.Drawing.Size(155, 20);
            this.buttonTextBox2.TabIndex = 12;
            // 
            // buttonTextBox1
            // 
            this.buttonTextBox1.Location = new System.Drawing.Point(59, 32);
            this.buttonTextBox1.Name = "buttonTextBox1";
            this.buttonTextBox1.Size = new System.Drawing.Size(155, 20);
            this.buttonTextBox1.TabIndex = 10;
            // 
            // buttonIDTextBox3
            // 
            this.buttonIDTextBox3.Location = new System.Drawing.Point(10, 84);
            this.buttonIDTextBox3.Name = "buttonIDTextBox3";
            this.buttonIDTextBox3.Size = new System.Drawing.Size(41, 20);
            this.buttonIDTextBox3.TabIndex = 13;
            this.buttonIDTextBox3.Text = "102";
            // 
            // buttonIDTextBox2
            // 
            this.buttonIDTextBox2.Location = new System.Drawing.Point(10, 58);
            this.buttonIDTextBox2.Name = "buttonIDTextBox2";
            this.buttonIDTextBox2.Size = new System.Drawing.Size(41, 20);
            this.buttonIDTextBox2.TabIndex = 11;
            this.buttonIDTextBox2.Text = "101";
            // 
            // buttonIDTextBox1
            // 
            this.buttonIDTextBox1.Location = new System.Drawing.Point(10, 32);
            this.buttonIDTextBox1.Name = "buttonIDTextBox1";
            this.buttonIDTextBox1.Size = new System.Drawing.Size(41, 20);
            this.buttonIDTextBox1.TabIndex = 9;
            this.buttonIDTextBox1.Text = "100";
            // 
            // label9
            // 
            this.label9.AutoSize = true;
            this.label9.Location = new System.Drawing.Point(58, 16);
            this.label9.Name = "label9";
            this.label9.Size = new System.Drawing.Size(28, 13);
            this.label9.TabIndex = 15;
            this.label9.Text = "Text";
            // 
            // label4
            // 
            this.label4.AutoSize = true;
            this.label4.Location = new System.Drawing.Point(12, 172);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(76, 13);
            this.label4.TabIndex = 39;
            this.label4.Text = "Expanded Info";
            // 
            // expandedInfoTextBox
            // 
            this.expandedInfoTextBox.Location = new System.Drawing.Point(103, 172);
            this.expandedInfoTextBox.Multiline = true;
            this.expandedInfoTextBox.Name = "expandedInfoTextBox";
            this.expandedInfoTextBox.Size = new System.Drawing.Size(391, 77);
            this.expandedInfoTextBox.TabIndex = 8;
            this.expandedInfoTextBox.Text = "The information that appears in the expanded section of the instructions about th" +
                "e task that is being <A HREF=\"executablestring\">Hyperlink Text</A> prompted to t" +
                "he user blah blah blah";
            // 
            // label3
            // 
            this.label3.AutoSize = true;
            this.label3.Location = new System.Drawing.Point(11, 556);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(37, 13);
            this.label3.TabIndex = 37;
            this.label3.Text = "Footer";
            // 
            // footerTextBox
            // 
            this.footerTextBox.Location = new System.Drawing.Point(102, 556);
            this.footerTextBox.Multiline = true;
            this.footerTextBox.Name = "footerTextBox";
            this.footerTextBox.Size = new System.Drawing.Size(391, 77);
            this.footerTextBox.TabIndex = 34;
            this.footerTextBox.Text = "To learn a martial art in Redmond you can try <A HREF=\"http://enso-center.org\">En" +
                "so Center</A>";
            // 
            // groupBox4
            // 
            this.groupBox4.Controls.Add(this.shieldRadioButton);
            this.groupBox4.Controls.Add(this.noneRadioButton);
            this.groupBox4.Controls.Add(this.informationRadioButton);
            this.groupBox4.Controls.Add(this.warningRadioButton);
            this.groupBox4.Controls.Add(this.errorRadioButton);
            this.groupBox4.Location = new System.Drawing.Point(500, 32);
            this.groupBox4.Name = "groupBox4";
            this.groupBox4.Size = new System.Drawing.Size(89, 136);
            this.groupBox4.TabIndex = 3;
            this.groupBox4.TabStop = false;
            this.groupBox4.Text = "Main Icon";
            // 
            // groupBox3
            // 
            this.groupBox3.Controls.Add(this.footerIconShield);
            this.groupBox3.Controls.Add(this.footerIconInfo);
            this.groupBox3.Controls.Add(this.footerIconNone);
            this.groupBox3.Controls.Add(this.footerIconError);
            this.groupBox3.Controls.Add(this.footerIconWarning);
            this.groupBox3.Location = new System.Drawing.Point(500, 530);
            this.groupBox3.Name = "groupBox3";
            this.groupBox3.Size = new System.Drawing.Size(89, 142);
            this.groupBox3.TabIndex = 35;
            this.groupBox3.TabStop = false;
            this.groupBox3.Text = "Footer Icon";
            // 
            // showProgressBarCheckBox
            // 
            this.showProgressBarCheckBox.AutoSize = true;
            this.showProgressBarCheckBox.Location = new System.Drawing.Point(383, 278);
            this.showProgressBarCheckBox.Name = "showProgressBarCheckBox";
            this.showProgressBarCheckBox.Size = new System.Drawing.Size(116, 17);
            this.showProgressBarCheckBox.TabIndex = 24;
            this.showProgressBarCheckBox.Text = "Show Progress Bar";
            this.showProgressBarCheckBox.CheckedChanged += new System.EventHandler(this.showProgressBarCheckBox_CheckedChanged);
            // 
            // progressWithTimerCheckBox
            // 
            this.progressWithTimerCheckBox.AutoSize = true;
            this.progressWithTimerCheckBox.Location = new System.Drawing.Point(409, 301);
            this.progressWithTimerCheckBox.Name = "progressWithTimerCheckBox";
            this.progressWithTimerCheckBox.Size = new System.Drawing.Size(114, 17);
            this.progressWithTimerCheckBox.TabIndex = 25;
            this.progressWithTimerCheckBox.Text = "Progress with timer";
            this.progressWithTimerCheckBox.CheckedChanged += new System.EventHandler(this.progressWithTimerCheckBox_CheckedChanged);
            // 
            // autoCancelCheckBox
            // 
            this.autoCancelCheckBox.AutoSize = true;
            this.autoCancelCheckBox.Location = new System.Drawing.Point(409, 324);
            this.autoCancelCheckBox.Name = "autoCancelCheckBox";
            this.autoCancelCheckBox.Size = new System.Drawing.Size(138, 17);
            this.autoCancelCheckBox.TabIndex = 26;
            this.autoCancelCheckBox.Text = "Close on Progress done";
            // 
            // allowCancelCheckBox
            // 
            this.allowCancelCheckBox.AutoSize = true;
            this.allowCancelCheckBox.Location = new System.Drawing.Point(383, 370);
            this.allowCancelCheckBox.Name = "allowCancelCheckBox";
            this.allowCancelCheckBox.Size = new System.Drawing.Size(198, 17);
            this.allowCancelCheckBox.TabIndex = 28;
            this.allowCancelCheckBox.Text = "Allow Cancel (with no cancel button)";
            // 
            // expandedByDefaultCheckBox
            // 
            this.expandedByDefaultCheckBox.AutoSize = true;
            this.expandedByDefaultCheckBox.Location = new System.Drawing.Point(383, 393);
            this.expandedByDefaultCheckBox.Name = "expandedByDefaultCheckBox";
            this.expandedByDefaultCheckBox.Size = new System.Drawing.Size(126, 17);
            this.expandedByDefaultCheckBox.TabIndex = 29;
            this.expandedByDefaultCheckBox.Text = "Expanded By Default";
            // 
            // expandedFooterCheckBox
            // 
            this.expandedFooterCheckBox.AutoSize = true;
            this.expandedFooterCheckBox.Location = new System.Drawing.Point(383, 416);
            this.expandedFooterCheckBox.Name = "expandedFooterCheckBox";
            this.expandedFooterCheckBox.Size = new System.Drawing.Size(140, 17);
            this.expandedFooterCheckBox.TabIndex = 30;
            this.expandedFooterCheckBox.Text = "Expanded Info at Footer";
            // 
            // positionRelativeToWindowCheckBox
            // 
            this.positionRelativeToWindowCheckBox.AutoSize = true;
            this.positionRelativeToWindowCheckBox.Location = new System.Drawing.Point(383, 439);
            this.positionRelativeToWindowCheckBox.Name = "positionRelativeToWindowCheckBox";
            this.positionRelativeToWindowCheckBox.Size = new System.Drawing.Size(159, 17);
            this.positionRelativeToWindowCheckBox.TabIndex = 31;
            this.positionRelativeToWindowCheckBox.Text = "Position Relative to Window";
            // 
            // showMarqueeCheckBox
            // 
            this.showMarqueeCheckBox.AutoSize = true;
            this.showMarqueeCheckBox.Location = new System.Drawing.Point(383, 347);
            this.showMarqueeCheckBox.Name = "showMarqueeCheckBox";
            this.showMarqueeCheckBox.Size = new System.Drawing.Size(161, 17);
            this.showMarqueeCheckBox.TabIndex = 27;
            this.showMarqueeCheckBox.Text = "Show Marquee Progress Bar";
            // 
            // UseCommandLinksCheckBox
            // 
            this.UseCommandLinksCheckBox.AutoSize = true;
            this.UseCommandLinksCheckBox.Location = new System.Drawing.Point(16, 110);
            this.UseCommandLinksCheckBox.Name = "UseCommandLinksCheckBox";
            this.UseCommandLinksCheckBox.Size = new System.Drawing.Size(123, 17);
            this.UseCommandLinksCheckBox.TabIndex = 15;
            this.UseCommandLinksCheckBox.Text = "Use Command Links";
            // 
            // useCommandLinksNoIconCheckBox
            // 
            this.useCommandLinksNoIconCheckBox.AutoSize = true;
            this.useCommandLinksNoIconCheckBox.Location = new System.Drawing.Point(16, 133);
            this.useCommandLinksNoIconCheckBox.Name = "useCommandLinksNoIconCheckBox";
            this.useCommandLinksNoIconCheckBox.Size = new System.Drawing.Size(164, 17);
            this.useCommandLinksNoIconCheckBox.TabIndex = 16;
            this.useCommandLinksNoIconCheckBox.Text = "Use Command Links No Icon";
            // 
            // label1
            // 
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(12, 533);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(88, 13);
            this.label1.TabIndex = 52;
            this.label1.Text = "Verify Check Box";
            // 
            // verficationFlagTextBox
            // 
            this.verficationFlagTextBox.Location = new System.Drawing.Point(124, 530);
            this.verficationFlagTextBox.Name = "verficationFlagTextBox";
            this.verficationFlagTextBox.Size = new System.Drawing.Size(370, 20);
            this.verficationFlagTextBox.TabIndex = 33;
            this.verficationFlagTextBox.Text = "Don\'t ask me this again.";
            // 
            // verifyFlagCheckBox
            // 
            this.verifyFlagCheckBox.AutoSize = true;
            this.verifyFlagCheckBox.Location = new System.Drawing.Point(102, 533);
            this.verifyFlagCheckBox.Name = "verifyFlagCheckBox";
            this.verifyFlagCheckBox.Size = new System.Drawing.Size(15, 14);
            this.verifyFlagCheckBox.TabIndex = 33;
            // 
            // label2
            // 
            this.label2.AutoSize = true;
            this.label2.Location = new System.Drawing.Point(11, 642);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(91, 13);
            this.label2.TabIndex = 54;
            this.label2.Text = "Expanded Control";
            // 
            // expandedControlTextBox
            // 
            this.expandedControlTextBox.Location = new System.Drawing.Point(102, 639);
            this.expandedControlTextBox.Name = "expandedControlTextBox";
            this.expandedControlTextBox.Size = new System.Drawing.Size(173, 20);
            this.expandedControlTextBox.TabIndex = 36;
            // 
            // label11
            // 
            this.label11.AutoSize = true;
            this.label11.Location = new System.Drawing.Point(11, 668);
            this.label11.Name = "label11";
            this.label11.Size = new System.Drawing.Size(89, 13);
            this.label11.TabIndex = 56;
            this.label11.Text = "Collapsed Control";
            // 
            // collapsedControlTextBox
            // 
            this.collapsedControlTextBox.Location = new System.Drawing.Point(102, 665);
            this.collapsedControlTextBox.Name = "collapsedControlTextBox";
            this.collapsedControlTextBox.Size = new System.Drawing.Size(173, 20);
            this.collapsedControlTextBox.TabIndex = 37;
            // 
            // RightToLeftLayoutCheckbox
            // 
            this.RightToLeftLayoutCheckbox.AutoSize = true;
            this.RightToLeftLayoutCheckbox.Location = new System.Drawing.Point(383, 462);
            this.RightToLeftLayoutCheckbox.Name = "RightToLeftLayoutCheckbox";
            this.RightToLeftLayoutCheckbox.Size = new System.Drawing.Size(119, 17);
            this.RightToLeftLayoutCheckbox.TabIndex = 32;
            this.RightToLeftLayoutCheckbox.Text = "Right to Left Layout";
            this.RightToLeftLayoutCheckbox.UseVisualStyleBackColor = true;
            // 
            // NoDefaultRadioButtonCheckBox
            // 
            this.NoDefaultRadioButtonCheckBox.AutoSize = true;
            this.NoDefaultRadioButtonCheckBox.Location = new System.Drawing.Point(230, 32);
            this.NoDefaultRadioButtonCheckBox.Name = "NoDefaultRadioButtonCheckBox";
            this.NoDefaultRadioButtonCheckBox.Size = new System.Drawing.Size(75, 17);
            this.NoDefaultRadioButtonCheckBox.TabIndex = 15;
            this.NoDefaultRadioButtonCheckBox.Text = "No default";
            this.NoDefaultRadioButtonCheckBox.UseVisualStyleBackColor = true;
            // 
            // CanBeMinimizedCheckBox
            // 
            this.CanBeMinimizedCheckBox.AutoSize = true;
            this.CanBeMinimizedCheckBox.Location = new System.Drawing.Point(383, 485);
            this.CanBeMinimizedCheckBox.Name = "CanBeMinimizedCheckBox";
            this.CanBeMinimizedCheckBox.Size = new System.Drawing.Size(108, 17);
            this.CanBeMinimizedCheckBox.TabIndex = 33;
            this.CanBeMinimizedCheckBox.Text = "Can be minimized";
            this.CanBeMinimizedCheckBox.UseVisualStyleBackColor = true;
            // 
            // label12
            // 
            this.label12.AutoSize = true;
            this.label12.Location = new System.Drawing.Point(234, 58);
            this.label12.Name = "label12";
            this.label12.Size = new System.Drawing.Size(41, 13);
            this.label12.TabIndex = 25;
            this.label12.Text = "Default";
            // 
            // defaultRadioButtonTextBox
            // 
            this.defaultRadioButtonTextBox.Location = new System.Drawing.Point(277, 55);
            this.defaultRadioButtonTextBox.Name = "defaultRadioButtonTextBox";
            this.defaultRadioButtonTextBox.Size = new System.Drawing.Size(41, 20);
            this.defaultRadioButtonTextBox.TabIndex = 22;
            this.defaultRadioButtonTextBox.Text = "0";
            // 
            // radioButtonIDTextBox3
            // 
            this.radioButtonIDTextBox3.Location = new System.Drawing.Point(10, 84);
            this.radioButtonIDTextBox3.Name = "radioButtonIDTextBox3";
            this.radioButtonIDTextBox3.Size = new System.Drawing.Size(41, 20);
            this.radioButtonIDTextBox3.TabIndex = 13;
            this.radioButtonIDTextBox3.Text = "105";
            // 
            // radioButtonIDTextBox2
            // 
            this.radioButtonIDTextBox2.Location = new System.Drawing.Point(10, 58);
            this.radioButtonIDTextBox2.Name = "radioButtonIDTextBox2";
            this.radioButtonIDTextBox2.Size = new System.Drawing.Size(41, 20);
            this.radioButtonIDTextBox2.TabIndex = 11;
            this.radioButtonIDTextBox2.Text = "104";
            // 
            // radioButtonIDTextBox1
            // 
            this.radioButtonIDTextBox1.Location = new System.Drawing.Point(10, 32);
            this.radioButtonIDTextBox1.Name = "radioButtonIDTextBox1";
            this.radioButtonIDTextBox1.Size = new System.Drawing.Size(41, 20);
            this.radioButtonIDTextBox1.TabIndex = 9;
            this.radioButtonIDTextBox1.Text = "103";
            // 
            // label13
            // 
            this.label13.AutoSize = true;
            this.label13.Location = new System.Drawing.Point(10, 16);
            this.label13.Name = "label13";
            this.label13.Size = new System.Drawing.Size(18, 13);
            this.label13.TabIndex = 14;
            this.label13.Text = "ID";
            // 
            // radioButtonTextBox3
            // 
            this.radioButtonTextBox3.Location = new System.Drawing.Point(59, 84);
            this.radioButtonTextBox3.Name = "radioButtonTextBox3";
            this.radioButtonTextBox3.Size = new System.Drawing.Size(156, 20);
            this.radioButtonTextBox3.TabIndex = 14;
            // 
            // radioButtonTextBox2
            // 
            this.radioButtonTextBox2.Location = new System.Drawing.Point(60, 58);
            this.radioButtonTextBox2.Name = "radioButtonTextBox2";
            this.radioButtonTextBox2.Size = new System.Drawing.Size(156, 20);
            this.radioButtonTextBox2.TabIndex = 12;
            // 
            // groupBox1
            // 
            this.groupBox1.Controls.Add(this.label12);
            this.groupBox1.Controls.Add(this.defaultRadioButtonTextBox);
            this.groupBox1.Controls.Add(this.NoDefaultRadioButtonCheckBox);
            this.groupBox1.Controls.Add(this.radioButtonTextBox3);
            this.groupBox1.Controls.Add(this.radioButtonTextBox2);
            this.groupBox1.Controls.Add(this.radioButtonTextBox1);
            this.groupBox1.Controls.Add(this.radioButtonIDTextBox3);
            this.groupBox1.Controls.Add(this.radioButtonIDTextBox2);
            this.groupBox1.Controls.Add(this.radioButtonIDTextBox1);
            this.groupBox1.Controls.Add(this.label14);
            this.groupBox1.Controls.Add(this.label13);
            this.groupBox1.Location = new System.Drawing.Point(12, 411);
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Size = new System.Drawing.Size(350, 112);
            this.groupBox1.TabIndex = 30;
            this.groupBox1.TabStop = false;
            this.groupBox1.Text = "Radio Buttons";
            // 
            // radioButtonTextBox1
            // 
            this.radioButtonTextBox1.Location = new System.Drawing.Point(59, 32);
            this.radioButtonTextBox1.Name = "radioButtonTextBox1";
            this.radioButtonTextBox1.Size = new System.Drawing.Size(156, 20);
            this.radioButtonTextBox1.TabIndex = 10;
            // 
            // label14
            // 
            this.label14.AutoSize = true;
            this.label14.Location = new System.Drawing.Point(58, 16);
            this.label14.Name = "label14";
            this.label14.Size = new System.Drawing.Size(28, 13);
            this.label14.TabIndex = 15;
            this.label14.Text = "Text";
            // 
            // closeCheckBox
            // 
            this.closeCheckBox.AutoSize = true;
            this.closeCheckBox.Location = new System.Drawing.Point(281, 78);
            this.closeCheckBox.Name = "closeCheckBox";
            this.closeCheckBox.Size = new System.Drawing.Size(52, 17);
            this.closeCheckBox.TabIndex = 22;
            this.closeCheckBox.Text = "Close";
            // 
            // shieldRadioButton
            // 
            this.shieldRadioButton.AutoSize = true;
            this.shieldRadioButton.Location = new System.Drawing.Point(10, 111);
            this.shieldRadioButton.Name = "shieldRadioButton";
            this.shieldRadioButton.Size = new System.Drawing.Size(54, 17);
            this.shieldRadioButton.TabIndex = 7;
            this.shieldRadioButton.Text = "Shield";
            // 
            // footerIconShield
            // 
            this.footerIconShield.AutoSize = true;
            this.footerIconShield.Location = new System.Drawing.Point(10, 111);
            this.footerIconShield.Name = "footerIconShield";
            this.footerIconShield.Size = new System.Drawing.Size(54, 17);
            this.footerIconShield.TabIndex = 39;
            this.footerIconShield.Text = "Shield";
            // 
            // Form1
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(594, 722);
            this.Controls.Add(this.groupBox1);
            this.Controls.Add(this.CanBeMinimizedCheckBox);
            this.Controls.Add(this.RightToLeftLayoutCheckbox);
            this.Controls.Add(this.label11);
            this.Controls.Add(this.collapsedControlTextBox);
            this.Controls.Add(this.label2);
            this.Controls.Add(this.expandedControlTextBox);
            this.Controls.Add(this.verifyFlagCheckBox);
            this.Controls.Add(this.label1);
            this.Controls.Add(this.verficationFlagTextBox);
            this.Controls.Add(this.showMarqueeCheckBox);
            this.Controls.Add(this.positionRelativeToWindowCheckBox);
            this.Controls.Add(this.expandedFooterCheckBox);
            this.Controls.Add(this.expandedByDefaultCheckBox);
            this.Controls.Add(this.allowCancelCheckBox);
            this.Controls.Add(this.autoCancelCheckBox);
            this.Controls.Add(this.progressWithTimerCheckBox);
            this.Controls.Add(this.showProgressBarCheckBox);
            this.Controls.Add(this.enableHyperlinksCheckBox);
            this.Controls.Add(this.groupBox2);
            this.Controls.Add(this.label7);
            this.Controls.Add(this.label4);
            this.Controls.Add(this.ReturnedButtonLabel);
            this.Controls.Add(this.expandedInfoTextBox);
            this.Controls.Add(this.contentTextBox);
            this.Controls.Add(this.label3);
            this.Controls.Add(this.label5);
            this.Controls.Add(this.footerTextBox);
            this.Controls.Add(this.label6);
            this.Controls.Add(this.groupBox4);
            this.Controls.Add(this.windowTitle);
            this.Controls.Add(this.groupBox3);
            this.Controls.Add(this.TaskDialogButton);
            this.Controls.Add(this.mainInstructionTextBox);
            this.Name = "Form1";
            this.Text = "Task Dialog in WinForms Test";
            this.Load += new System.EventHandler(this.Form1_Load);
            this.groupBox2.ResumeLayout(false);
            this.groupBox2.PerformLayout();
            this.groupBox4.ResumeLayout(false);
            this.groupBox4.PerformLayout();
            this.groupBox3.ResumeLayout(false);
            this.groupBox3.PerformLayout();
            this.groupBox1.ResumeLayout(false);
            this.groupBox1.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private System.Windows.Forms.Button TaskDialogButton;
        private System.Windows.Forms.Label label6;
        private System.Windows.Forms.Label label7;
        private System.Windows.Forms.TextBox mainInstructionTextBox;
        private System.Windows.Forms.TextBox windowTitle;
        private System.Windows.Forms.CheckBox okCheckBox;
        private System.Windows.Forms.Label label8;
        private System.Windows.Forms.CheckBox yesCheckBox;
        private System.Windows.Forms.CheckBox NoCheckBox;
        private System.Windows.Forms.CheckBox cancelCheckBox;
        private System.Windows.Forms.CheckBox retryCheckBox;
        private System.Windows.Forms.RadioButton noneRadioButton;
        private System.Windows.Forms.RadioButton informationRadioButton;
        private System.Windows.Forms.RadioButton warningRadioButton;
        private System.Windows.Forms.RadioButton errorRadioButton;
        private System.Windows.Forms.Label ReturnedButtonLabel;
        private System.Windows.Forms.Label label5;
        private System.Windows.Forms.TextBox contentTextBox;
        private System.Windows.Forms.RadioButton footerIconError;
        private System.Windows.Forms.RadioButton footerIconWarning;
        private System.Windows.Forms.RadioButton footerIconInfo;
        private System.Windows.Forms.RadioButton footerIconNone;
        private System.Windows.Forms.GroupBox groupBox3;
        private System.Windows.Forms.GroupBox groupBox4;
        private System.Windows.Forms.Label label3;
        private System.Windows.Forms.TextBox footerTextBox;
        private System.Windows.Forms.Label label4;
        private System.Windows.Forms.TextBox expandedInfoTextBox;
        private System.Windows.Forms.GroupBox groupBox2;
        private System.Windows.Forms.TextBox buttonIDTextBox1;
        private System.Windows.Forms.Label label9;
        private System.Windows.Forms.TextBox buttonIDTextBox3;
        private System.Windows.Forms.TextBox buttonIDTextBox2;
        private System.Windows.Forms.TextBox buttonTextBox3;
        private System.Windows.Forms.TextBox buttonTextBox2;
        private System.Windows.Forms.TextBox buttonTextBox1;
        private System.Windows.Forms.Label label10;
        private System.Windows.Forms.TextBox defaultButtonTextBox;
        private System.Windows.Forms.CheckBox enableHyperlinksCheckBox;
        private System.Windows.Forms.CheckBox showProgressBarCheckBox;
        private System.Windows.Forms.CheckBox progressWithTimerCheckBox;
        private System.Windows.Forms.CheckBox autoCancelCheckBox;
        private System.Windows.Forms.CheckBox allowCancelCheckBox;
        private System.Windows.Forms.CheckBox expandedByDefaultCheckBox;
        private System.Windows.Forms.CheckBox expandedFooterCheckBox;
        private System.Windows.Forms.CheckBox positionRelativeToWindowCheckBox;
        private System.Windows.Forms.CheckBox showMarqueeCheckBox;
        private System.Windows.Forms.CheckBox UseCommandLinksCheckBox;
        private System.Windows.Forms.CheckBox useCommandLinksNoIconCheckBox;
        private System.Windows.Forms.Label label1;
        private System.Windows.Forms.TextBox verficationFlagTextBox;
        private System.Windows.Forms.CheckBox verifyFlagCheckBox;
        private System.Windows.Forms.Label label2;
        private System.Windows.Forms.TextBox expandedControlTextBox;
        private System.Windows.Forms.Label label11;
        private System.Windows.Forms.TextBox collapsedControlTextBox;
        private System.Windows.Forms.CheckBox RightToLeftLayoutCheckbox;
        private System.Windows.Forms.CheckBox NoDefaultRadioButtonCheckBox;
        private System.Windows.Forms.CheckBox CanBeMinimizedCheckBox;
        private System.Windows.Forms.Label label12;
        private System.Windows.Forms.TextBox defaultRadioButtonTextBox;
        private System.Windows.Forms.TextBox radioButtonIDTextBox3;
        private System.Windows.Forms.TextBox radioButtonIDTextBox2;
        private System.Windows.Forms.TextBox radioButtonIDTextBox1;
        private System.Windows.Forms.Label label13;
        private System.Windows.Forms.TextBox radioButtonTextBox3;
        private System.Windows.Forms.TextBox radioButtonTextBox2;
        private System.Windows.Forms.GroupBox groupBox1;
        private System.Windows.Forms.TextBox radioButtonTextBox1;
        private System.Windows.Forms.Label label14;
        private System.Windows.Forms.CheckBox closeCheckBox;
        private System.Windows.Forms.RadioButton shieldRadioButton;
        private System.Windows.Forms.RadioButton footerIconShield;

    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under A Public Domain dedication

About the Author

KevinGre
Software Developer
United States United States
No Biography provided

| Advertise | Privacy | Mobile
Web02 | 2.8.140721.1 | Last Updated 5 Jan 2007
Article Copyright 2007 by KevinGre
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid