Click here to Skip to main content
15,891,938 members
Articles / Programming Languages / C#

Create a Vista Gadget Using Visual Studio IDE (updated)

Rate me:
Please Sign up or sign in to vote.
4.84/5 (46 votes)
8 Feb 2011CPOL13 min read 264.6K   19.5K   254  
This article describes how to use Visual Studio for developing a Vista Gadget.
namespace RunVistaGadget25
{
    partial class GadgetSettings
    {
        /// <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()
        {
            this.txtPrivateKeyPassword = new System.Windows.Forms.TextBox();
            this.btnCancelSaveGadgetSettings = new System.Windows.Forms.Button();
            this.label5 = new System.Windows.Forms.Label();
            this.label4 = new System.Windows.Forms.Label();
            this.txtPfxFilePath = new System.Windows.Forms.TextBox();
            this.btnSaveGadgetSettings = new System.Windows.Forms.Button();
            this.btnDefinePfxFilePath = new System.Windows.Forms.Button();
            this.label3 = new System.Windows.Forms.Label();
            this.txtSigntoolPath = new System.Windows.Forms.TextBox();
            this.btnDefineSigntoolPath = new System.Windows.Forms.Button();
            this.chkIsBuildSignedGadget = new System.Windows.Forms.CheckBox();
            this.label1 = new System.Windows.Forms.Label();
            this.btnDefineCabarcPath = new System.Windows.Forms.Button();
            this.txtAllowedFileExtension = new System.Windows.Forms.TextBox();
            this.txtShortcutForRunGadget = new System.Windows.Forms.TextBox();
            this.label6 = new System.Windows.Forms.Label();
            this.label7 = new System.Windows.Forms.Label();
            this.gbAdditionalApplications = new System.Windows.Forms.GroupBox();
            this.pnlSignedGadgetBuildOptions = new System.Windows.Forms.Panel();
            this.txtCabarcPath = new System.Windows.Forms.TextBox();
            this.label2 = new System.Windows.Forms.Label();
            this.txtOutputGadgetPath = new System.Windows.Forms.TextBox();
            this.btnDefineOuputGadgetPath = new System.Windows.Forms.Button();
            this.gbAdditionalApplications.SuspendLayout();
            this.pnlSignedGadgetBuildOptions.SuspendLayout();
            this.SuspendLayout();
            // 
            // txtPrivateKeyPassword
            // 
            this.txtPrivateKeyPassword.Location = new System.Drawing.Point(139, 65);
            this.txtPrivateKeyPassword.Name = "txtPrivateKeyPassword";
            this.txtPrivateKeyPassword.PasswordChar = '*';
            this.txtPrivateKeyPassword.Size = new System.Drawing.Size(291, 20);
            this.txtPrivateKeyPassword.TabIndex = 13;
            // 
            // btnCancelSaveGadgetSettings
            // 
            this.btnCancelSaveGadgetSettings.Location = new System.Drawing.Point(391, 392);
            this.btnCancelSaveGadgetSettings.Name = "btnCancelSaveGadgetSettings";
            this.btnCancelSaveGadgetSettings.Size = new System.Drawing.Size(75, 23);
            this.btnCancelSaveGadgetSettings.TabIndex = 24;
            this.btnCancelSaveGadgetSettings.Text = "Cancel";
            this.btnCancelSaveGadgetSettings.UseVisualStyleBackColor = true;
            this.btnCancelSaveGadgetSettings.Click += new System.EventHandler(this.btnCancelSaveGadgetSettings_Click);
            // 
            // label5
            // 
            this.label5.AutoSize = true;
            this.label5.Location = new System.Drawing.Point(3, 68);
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size(111, 13);
            this.label5.TabIndex = 12;
            this.label5.Text = "Private key password:";
            // 
            // label4
            // 
            this.label4.AutoSize = true;
            this.label4.Location = new System.Drawing.Point(3, 42);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(71, 13);
            this.label4.TabIndex = 9;
            this.label4.Text = "*.pfx file path:";
            // 
            // txtPfxFilePath
            // 
            this.txtPfxFilePath.Location = new System.Drawing.Point(139, 39);
            this.txtPfxFilePath.Name = "txtPfxFilePath";
            this.txtPfxFilePath.Size = new System.Drawing.Size(291, 20);
            this.txtPfxFilePath.TabIndex = 10;
            // 
            // btnSaveGadgetSettings
            // 
            this.btnSaveGadgetSettings.Location = new System.Drawing.Point(309, 392);
            this.btnSaveGadgetSettings.Name = "btnSaveGadgetSettings";
            this.btnSaveGadgetSettings.Size = new System.Drawing.Size(75, 23);
            this.btnSaveGadgetSettings.TabIndex = 23;
            this.btnSaveGadgetSettings.Text = "Save";
            this.btnSaveGadgetSettings.UseVisualStyleBackColor = true;
            this.btnSaveGadgetSettings.Click += new System.EventHandler(this.btnSaveGadgetSettings_Click);
            // 
            // btnDefinePfxFilePath
            // 
            this.btnDefinePfxFilePath.Location = new System.Drawing.Point(436, 37);
            this.btnDefinePfxFilePath.Name = "btnDefinePfxFilePath";
            this.btnDefinePfxFilePath.Size = new System.Drawing.Size(28, 23);
            this.btnDefinePfxFilePath.TabIndex = 11;
            this.btnDefinePfxFilePath.Text = "...";
            this.btnDefinePfxFilePath.UseVisualStyleBackColor = true;
            this.btnDefinePfxFilePath.Click += new System.EventHandler(this.btnDefinePfxFilePath_Click);
            // 
            // label3
            // 
            this.label3.AutoSize = true;
            this.label3.Location = new System.Drawing.Point(3, 13);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(92, 13);
            this.label3.TabIndex = 6;
            this.label3.Text = "Signtool.exe path:";
            // 
            // txtSigntoolPath
            // 
            this.txtSigntoolPath.Location = new System.Drawing.Point(139, 10);
            this.txtSigntoolPath.Name = "txtSigntoolPath";
            this.txtSigntoolPath.Size = new System.Drawing.Size(291, 20);
            this.txtSigntoolPath.TabIndex = 7;
            // 
            // btnDefineSigntoolPath
            // 
            this.btnDefineSigntoolPath.Location = new System.Drawing.Point(436, 8);
            this.btnDefineSigntoolPath.Name = "btnDefineSigntoolPath";
            this.btnDefineSigntoolPath.Size = new System.Drawing.Size(28, 23);
            this.btnDefineSigntoolPath.TabIndex = 8;
            this.btnDefineSigntoolPath.Text = "...";
            this.btnDefineSigntoolPath.UseVisualStyleBackColor = true;
            this.btnDefineSigntoolPath.Click += new System.EventHandler(this.btnDefineSigntoolPath_Click);
            // 
            // chkIsBuildSignedGadget
            // 
            this.chkIsBuildSignedGadget.AutoSize = true;
            this.chkIsBuildSignedGadget.Location = new System.Drawing.Point(11, 67);
            this.chkIsBuildSignedGadget.Name = "chkIsBuildSignedGadget";
            this.chkIsBuildSignedGadget.Size = new System.Drawing.Size(146, 17);
            this.chkIsBuildSignedGadget.TabIndex = 9;
            this.chkIsBuildSignedGadget.Text = "Is will build signed gadget";
            this.chkIsBuildSignedGadget.UseVisualStyleBackColor = true;
            this.chkIsBuildSignedGadget.CheckedChanged += new System.EventHandler(this.chkIsBuildSignedGadget_CheckedChanged);
            // 
            // label1
            // 
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(15, 15);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(131, 13);
            this.label1.TabIndex = 20;
            this.label1.Text = "Output Vista Gadget Path:";
            // 
            // btnDefineCabarcPath
            // 
            this.btnDefineCabarcPath.Location = new System.Drawing.Point(442, 29);
            this.btnDefineCabarcPath.Name = "btnDefineCabarcPath";
            this.btnDefineCabarcPath.Size = new System.Drawing.Size(28, 23);
            this.btnDefineCabarcPath.TabIndex = 5;
            this.btnDefineCabarcPath.Text = "...";
            this.btnDefineCabarcPath.UseVisualStyleBackColor = true;
            this.btnDefineCabarcPath.Click += new System.EventHandler(this.btnDefineCabarcPath_Click);
            // 
            // txtAllowedFileExtension
            // 
            this.txtAllowedFileExtension.Location = new System.Drawing.Point(151, 77);
            this.txtAllowedFileExtension.Name = "txtAllowedFileExtension";
            this.txtAllowedFileExtension.Size = new System.Drawing.Size(291, 20);
            this.txtAllowedFileExtension.TabIndex = 29;
            // 
            // txtShortcutForRunGadget
            // 
            this.txtShortcutForRunGadget.Location = new System.Drawing.Point(152, 44);
            this.txtShortcutForRunGadget.Name = "txtShortcutForRunGadget";
            this.txtShortcutForRunGadget.Size = new System.Drawing.Size(291, 20);
            this.txtShortcutForRunGadget.TabIndex = 27;
            // 
            // label6
            // 
            this.label6.AutoSize = true;
            this.label6.Location = new System.Drawing.Point(15, 47);
            this.label6.Name = "label6";
            this.label6.Size = new System.Drawing.Size(139, 13);
            this.label6.TabIndex = 26;
            this.label6.Text = "Shortcut key for run gadget:";
            // 
            // label7
            // 
            this.label7.AutoSize = true;
            this.label7.Location = new System.Drawing.Point(14, 80);
            this.label7.Name = "label7";
            this.label7.Size = new System.Drawing.Size(116, 13);
            this.label7.TabIndex = 28;
            this.label7.Text = "Allowed file extensions:";
            // 
            // gbAdditionalApplications
            // 
            this.gbAdditionalApplications.Controls.Add(this.pnlSignedGadgetBuildOptions);
            this.gbAdditionalApplications.Controls.Add(this.chkIsBuildSignedGadget);
            this.gbAdditionalApplications.Controls.Add(this.btnDefineCabarcPath);
            this.gbAdditionalApplications.Controls.Add(this.txtCabarcPath);
            this.gbAdditionalApplications.Controls.Add(this.label2);
            this.gbAdditionalApplications.Location = new System.Drawing.Point(7, 121);
            this.gbAdditionalApplications.Name = "gbAdditionalApplications";
            this.gbAdditionalApplications.Size = new System.Drawing.Size(492, 243);
            this.gbAdditionalApplications.TabIndex = 25;
            this.gbAdditionalApplications.TabStop = false;
            this.gbAdditionalApplications.Text = "Additional Application Settings:";
            // 
            // pnlSignedGadgetBuildOptions
            // 
            this.pnlSignedGadgetBuildOptions.Controls.Add(this.label5);
            this.pnlSignedGadgetBuildOptions.Controls.Add(this.txtPrivateKeyPassword);
            this.pnlSignedGadgetBuildOptions.Controls.Add(this.label4);
            this.pnlSignedGadgetBuildOptions.Controls.Add(this.txtPfxFilePath);
            this.pnlSignedGadgetBuildOptions.Controls.Add(this.btnDefinePfxFilePath);
            this.pnlSignedGadgetBuildOptions.Controls.Add(this.label3);
            this.pnlSignedGadgetBuildOptions.Controls.Add(this.txtSigntoolPath);
            this.pnlSignedGadgetBuildOptions.Controls.Add(this.btnDefineSigntoolPath);
            this.pnlSignedGadgetBuildOptions.Enabled = false;
            this.pnlSignedGadgetBuildOptions.Location = new System.Drawing.Point(6, 90);
            this.pnlSignedGadgetBuildOptions.Name = "pnlSignedGadgetBuildOptions";
            this.pnlSignedGadgetBuildOptions.Size = new System.Drawing.Size(480, 100);
            this.pnlSignedGadgetBuildOptions.TabIndex = 10;
            // 
            // txtCabarcPath
            // 
            this.txtCabarcPath.Location = new System.Drawing.Point(145, 31);
            this.txtCabarcPath.Name = "txtCabarcPath";
            this.txtCabarcPath.Size = new System.Drawing.Size(291, 20);
            this.txtCabarcPath.TabIndex = 4;
            // 
            // label2
            // 
            this.label2.AutoSize = true;
            this.label2.Location = new System.Drawing.Point(8, 34);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(88, 13);
            this.label2.TabIndex = 3;
            this.label2.Text = "Cabarc.exe path:";
            // 
            // txtOutputGadgetPath
            // 
            this.txtOutputGadgetPath.Location = new System.Drawing.Point(152, 12);
            this.txtOutputGadgetPath.Name = "txtOutputGadgetPath";
            this.txtOutputGadgetPath.Size = new System.Drawing.Size(291, 20);
            this.txtOutputGadgetPath.TabIndex = 21;
            // 
            // btnDefineOuputGadgetPath
            // 
            this.btnDefineOuputGadgetPath.Location = new System.Drawing.Point(449, 10);
            this.btnDefineOuputGadgetPath.Name = "btnDefineOuputGadgetPath";
            this.btnDefineOuputGadgetPath.Size = new System.Drawing.Size(28, 23);
            this.btnDefineOuputGadgetPath.TabIndex = 22;
            this.btnDefineOuputGadgetPath.Text = "...";
            this.btnDefineOuputGadgetPath.UseVisualStyleBackColor = true;
            this.btnDefineOuputGadgetPath.Click += new System.EventHandler(this.btnDefineOuputGadgetPath_Click);
            // 
            // GadgetSettings
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(509, 425);
            this.Controls.Add(this.btnCancelSaveGadgetSettings);
            this.Controls.Add(this.btnSaveGadgetSettings);
            this.Controls.Add(this.label1);
            this.Controls.Add(this.txtAllowedFileExtension);
            this.Controls.Add(this.txtShortcutForRunGadget);
            this.Controls.Add(this.label6);
            this.Controls.Add(this.label7);
            this.Controls.Add(this.gbAdditionalApplications);
            this.Controls.Add(this.txtOutputGadgetPath);
            this.Controls.Add(this.btnDefineOuputGadgetPath);
            this.Name = "GadgetSettings";
            this.Text = "GadgetSettings";
            this.Load += new System.EventHandler(this.LoadGadgetSettings);
            this.gbAdditionalApplications.ResumeLayout(false);
            this.gbAdditionalApplications.PerformLayout();
            this.pnlSignedGadgetBuildOptions.ResumeLayout(false);
            this.pnlSignedGadgetBuildOptions.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private System.Windows.Forms.TextBox txtPrivateKeyPassword;
        private System.Windows.Forms.Button btnCancelSaveGadgetSettings;
        private System.Windows.Forms.Label label5;
        private System.Windows.Forms.Label label4;
        private System.Windows.Forms.TextBox txtPfxFilePath;
        private System.Windows.Forms.Button btnSaveGadgetSettings;
        private System.Windows.Forms.Button btnDefinePfxFilePath;
        private System.Windows.Forms.Label label3;
        private System.Windows.Forms.TextBox txtSigntoolPath;
        private System.Windows.Forms.Button btnDefineSigntoolPath;
        private System.Windows.Forms.CheckBox chkIsBuildSignedGadget;
        private System.Windows.Forms.Label label1;
        private System.Windows.Forms.Button btnDefineCabarcPath;
        private System.Windows.Forms.TextBox txtAllowedFileExtension;
        private System.Windows.Forms.TextBox txtShortcutForRunGadget;
        private System.Windows.Forms.Label label6;
        private System.Windows.Forms.Label label7;
        private System.Windows.Forms.GroupBox gbAdditionalApplications;
        private System.Windows.Forms.Panel pnlSignedGadgetBuildOptions;
        private System.Windows.Forms.TextBox txtCabarcPath;
        private System.Windows.Forms.Label label2;
        private System.Windows.Forms.TextBox txtOutputGadgetPath;
        private System.Windows.Forms.Button btnDefineOuputGadgetPath;
    }
}

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 The Code Project Open License (CPOL)


Written By
Software Developer
Canada Canada
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions