当前位置: 首页>>代码示例>>C#>>正文


C# Forms.Button类代码示例

本文整理汇总了C#中System.Windows.Forms.Button的典型用法代码示例。如果您正苦于以下问题:C# System.Windows.Forms.Button类的具体用法?C# System.Windows.Forms.Button怎么用?C# System.Windows.Forms.Button使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


System.Windows.Forms.Button类属于命名空间,在下文中一共展示了System.Windows.Forms.Button类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: InitializeComponent

 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.groupBox1 = new System.Windows.Forms.GroupBox();
     this.treeViewClassficationList = new System.Windows.Forms.TreeView();
     this.btnOutput = new System.Windows.Forms.Button();
     this.btnCancel = new System.Windows.Forms.Button();
     this.groupBox1.SuspendLayout();
     this.SuspendLayout();
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.treeViewClassficationList);
     this.groupBox1.Location = new System.Drawing.Point(5, 3);
     this.groupBox1.Name = "groupBox1";
     this.groupBox1.Size = new System.Drawing.Size(277, 264);
     this.groupBox1.TabIndex = 0;
     this.groupBox1.TabStop = false;
     this.groupBox1.Text = "重量分类列表";
     //
     // treeViewClassficationList
     //
     this.treeViewClassficationList.Location = new System.Drawing.Point(7, 16);
     this.treeViewClassficationList.Name = "treeViewClassficationList";
     this.treeViewClassficationList.Size = new System.Drawing.Size(264, 242);
     this.treeViewClassficationList.TabIndex = 0;
     //
     // btnOutput
     //
     this.btnOutput.Location = new System.Drawing.Point(120, 273);
     this.btnOutput.Name = "btnOutput";
     this.btnOutput.Size = new System.Drawing.Size(75, 23);
     this.btnOutput.TabIndex = 1;
     this.btnOutput.Text = "导出";
     this.btnOutput.UseVisualStyleBackColor = true;
     //
     // btnCancel
     //
     this.btnCancel.Location = new System.Drawing.Point(201, 273);
     this.btnCancel.Name = "btnCancel";
     this.btnCancel.Size = new System.Drawing.Size(75, 23);
     this.btnCancel.TabIndex = 2;
     this.btnCancel.Text = "取消";
     this.btnCancel.UseVisualStyleBackColor = true;
     //
     // OutputWeightClassficationFrm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(288, 302);
     this.Controls.Add(this.btnCancel);
     this.Controls.Add(this.btnOutput);
     this.Controls.Add(this.groupBox1);
     this.MaximizeBox = false;
     this.MinimizeBox = false;
     this.Name = "OutputWeightClassficationFrm";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "重量分类选择对话框";
     this.groupBox1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
开发者ID:algz,项目名称:DesignAndEstimateSoft,代码行数:64,代码来源:OutputWeightClassficationFrm.designer.cs

示例2: InitializeComponent

 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.butOK = new System.Windows.Forms.Button();
     this.butCancel = new System.Windows.Forms.Button();
     this.textPassword = new System.Windows.Forms.TextBox();
     this.label4 = new System.Windows.Forms.Label();
     this.SuspendLayout();
     //
     // butOK
     //
     this.butOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butOK.Location = new System.Drawing.Point(202,68);
     this.butOK.Name = "butOK";
     this.butOK.Size = new System.Drawing.Size(75,24);
     this.butOK.TabIndex = 3;
     this.butOK.Text = "&OK";
     this.butOK.Click += new System.EventHandler(this.butOK_Click);
     //
     // butCancel
     //
     this.butCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butCancel.Location = new System.Drawing.Point(283,68);
     this.butCancel.Name = "butCancel";
     this.butCancel.Size = new System.Drawing.Size(75,24);
     this.butCancel.TabIndex = 2;
     this.butCancel.Text = "&Cancel";
     this.butCancel.Click += new System.EventHandler(this.butCancel_Click);
     //
     // textPassword
     //
     this.textPassword.Location = new System.Drawing.Point(126,26);
     this.textPassword.Name = "textPassword";
     this.textPassword.Size = new System.Drawing.Size(190,20);
     this.textPassword.TabIndex = 0;
     //
     // label4
     //
     this.label4.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.label4.Location = new System.Drawing.Point(12,29);
     this.label4.Name = "label4";
     this.label4.Size = new System.Drawing.Size(111,17);
     this.label4.TabIndex = 207;
     this.label4.Text = "New Password";
     this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // FormCentralPasswordChange
     //
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
     this.ClientSize = new System.Drawing.Size(370,104);
     this.Controls.Add(this.label4);
     this.Controls.Add(this.textPassword);
     this.Controls.Add(this.butOK);
     this.Controls.Add(this.butCancel);
     this.Name = "FormCentralPasswordChange";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "Change Password";
     this.Load += new System.EventHandler(this.FormCentralPasswordChange_Load);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
开发者ID:nampn,项目名称:ODental,代码行数:64,代码来源:FormCentralPasswordChange.designer.cs

示例3: InitializeComponent

 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.btnOk = new System.Windows.Forms.Button();
     this.SuspendLayout();
     //
     // btnOk
     //
     this.btnOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnOk.Font = new System.Drawing.Font("Times New Roman", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.btnOk.Location = new System.Drawing.Point(125, 145);
     this.btnOk.Name = "btnOk";
     this.btnOk.Size = new System.Drawing.Size(43, 21);
     this.btnOk.TabIndex = 0;
     this.btnOk.Text = "OK";
     this.btnOk.UseVisualStyleBackColor = true;
     this.btnOk.Click += new System.EventHandler(this.btnOk_Click);
     //
     // frmAbout
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 19F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.BackColor = System.Drawing.Color.LightCyan;
     this.ClientSize = new System.Drawing.Size(292, 178);
     this.Controls.Add(this.btnOk);
     this.Font = new System.Drawing.Font("Times New Roman", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Margin = new System.Windows.Forms.Padding(4);
     this.MaximizeBox = false;
     this.MinimizeBox = false;
     this.Name = "frmAbout";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "QL_BanDayNit V1.0";
     this.ResumeLayout(false);
 }
开发者ID:vipnat,项目名称:QL_BanDayNit,代码行数:38,代码来源:About.designer.cs

示例4: InitializeComponent

		/// <summary>
		/// This method is required for Windows Forms designer support.
		/// Do not change the method contents inside the source code editor. The Forms designer might
		/// not be able to load this method if it was changed manually.
		/// </summary>
		private void InitializeComponent()
		{
			this.folderBrowserDialog1 = new System.Windows.Forms.FolderBrowserDialog();
			this.button1 = new System.Windows.Forms.Button();
			this.SuspendLayout();
			// 
			// folderBrowserDialog1
			// 
			this.folderBrowserDialog1.Description = "Chose monitor fodler";
			// 
			// button1
			// 
			this.button1.Location = new System.Drawing.Point(100, 54);
			this.button1.Name = "button1";
			this.button1.Size = new System.Drawing.Size(186, 78);
			this.button1.TabIndex = 0;
			this.button1.Text = "chose monitor folder";
			this.button1.UseVisualStyleBackColor = true;
			this.button1.Click += new System.EventHandler(this.Button1Click);
			// 
			// MainForm
			// 
			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			this.ClientSize = new System.Drawing.Size(396, 264);
			this.Controls.Add(this.button1);
			this.Name = "MainForm";
			this.Text = "LoseAV";
			this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MainFormFormClosing);
			this.ResumeLayout(false);

		}
开发者ID:droidwolf,项目名称:Win32-Inline-API-hook,代码行数:37,代码来源:MainForm.Designer.cs

示例5: AddFixedValueButton

 public void AddFixedValueButton(string text)
 {
     System.Windows.Forms.Button button = new System.Windows.Forms.Button();
     button.Text = text;
     button.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     button.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     button.ForeColor = System.Drawing.Color.DarkGray;
     button.FlatAppearance.BorderSize = 0;
     button.Dock = System.Windows.Forms.DockStyle.Right;
     if (text.Length < 3 || (text.Length == 3 && text.Contains(".")))
     {
         button.Width = 30;
         this.pnlButtons.Width += 30;
     }
     else if (text.Length < 4)
     {
         button.Width = 35;
         this.pnlButtons.Width += 35;
     }
     else if (text.Length < 5)
     {
         button.Width = 40;
         this.pnlButtons.Width += 40;
     }
     else
     {
         button.Width = 60;
         this.pnlButtons.Width += 60;
     }
     _additionalButtonsWidth += button.Width;
     _additionalButtonsWidth += tmpBtnSize;
     button.Click += Button_Click;
     this.pnlButtons.Controls.Add(button);
 }
开发者ID:trafassel,项目名称:Gestaltlupe,代码行数:34,代码来源:DataViewStringElement.cs

示例6: InitializeComponent

 /// <summary>
 /// 设计器支持所需的方法 - 不要
 /// 使用代码编辑器修改此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     this.button1 = new System.Windows.Forms.Button();
     this.SuspendLayout();
     //
     // button1
     //
     this.button1.Location = new System.Drawing.Point(118, 192);
     this.button1.Name = "button1";
     this.button1.Size = new System.Drawing.Size(75, 23);
     this.button1.TabIndex = 1;
     this.button1.Text = "打开";
     this.button1.UseVisualStyleBackColor = true;
     this.button1.Click += new System.EventHandler(this.button1_Click);
     //
     // Frm_Main
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(334, 244);
     this.Controls.Add(this.button1);
     this.IsMdiContainer = true;
     this.Name = "Frm_Main";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "设置窗体为父窗体";
     this.ResumeLayout(false);
 }
开发者ID:TGHGH,项目名称:C-1200,代码行数:31,代码来源:Frm_Main.designer.cs

示例7: InitializeComponent

 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.btnGenerate = new System.Windows.Forms.Button();
     this.SuspendLayout();
     //
     // btnGenerate
     //
     this.btnGenerate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnGenerate.Location = new System.Drawing.Point(537, 409);
     this.btnGenerate.Name = "btnGenerate";
     this.btnGenerate.Size = new System.Drawing.Size(75, 23);
     this.btnGenerate.TabIndex = 0;
     this.btnGenerate.Text = "Generate";
     this.btnGenerate.UseVisualStyleBackColor = true;
     this.btnGenerate.Click += new System.EventHandler(this.btnGenerate_Click);
     //
     // Demo
     //
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
     this.BackColor = System.Drawing.Color.White;
     this.ClientSize = new System.Drawing.Size(624, 444);
     this.Controls.Add(this.btnGenerate);
     this.DoubleBuffered = true;
     this.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Name = "Demo";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "Force-Directed Diagram Example";
     this.ResumeLayout(false);
 }
开发者ID:xavierpena,项目名称:family_tree,代码行数:33,代码来源:Demo.designer.cs

示例8: InitializeComponent

 /// <summary>
 /// 设计器支持所需的方法 - 不要
 /// 使用代码编辑器修改此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     this.button1 = new System.Windows.Forms.Button();
     this.SuspendLayout();
     //
     // button1
     //
     this.button1.Location = new System.Drawing.Point(68, 15);
     this.button1.Name = "button1";
     this.button1.Size = new System.Drawing.Size(103, 33);
     this.button1.TabIndex = 0;
     this.button1.Text = "C#编程词典";
     this.button1.UseVisualStyleBackColor = true;
     //
     // Frm_Main
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(246, 66);
     this.Controls.Add(this.button1);
     this.Name = "Frm_Main";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "修改继承窗体中的控件属性";
     this.ResumeLayout(false);
 }
开发者ID:TGHGH,项目名称:C-1200,代码行数:29,代码来源:Frm_Main.designer.cs

示例9: InitializeComponent

 /// <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(HelpCenter));
     this.button1 = new System.Windows.Forms.Button();
     this.SuspendLayout();
     //
     // button1
     //
     this.button1.Location = new System.Drawing.Point(501, 404);
     this.button1.Name = "button1";
     this.button1.Size = new System.Drawing.Size(75, 23);
     this.button1.TabIndex = 0;
     this.button1.Text = "Next>>";
     this.button1.UseVisualStyleBackColor = true;
     this.button1.Click += new System.EventHandler(this.button1_Click);
     //
     // HelpCenter
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
     this.ClientSize = new System.Drawing.Size(707, 427);
     this.Controls.Add(this.button1);
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox = false;
     this.MinimizeBox = false;
     this.Name = "HelpCenter";
     this.Text = "HelpCenter";
     this.Load += new System.EventHandler(this.HelpCenter_Load);
     this.Paint += new System.Windows.Forms.PaintEventHandler(this.HelpCenter_Paint);
     this.ResumeLayout(false);
 }
开发者ID:KristijanLaskovski,项目名称:Pokemon2014,代码行数:36,代码来源:HelpCenter.designer.cs

示例10: InitializeComponent

 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.button1 = new System.Windows.Forms.Button();
     this._panel2_LeftControlPanel.SuspendLayout();
     this.panel_TopPanel.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox_RightLogo)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox_LeftLogo)).BeginInit();
     this.SuspendLayout();
     //
     // button1
     //
     this.button1.Location = new System.Drawing.Point(0, 0);
     this.button1.Name = "button1";
     this.button1.Size = new System.Drawing.Size(75, 23);
     this.button1.TabIndex = 2;
     this.button1.Text = "button1";
     this.button1.UseVisualStyleBackColor = true;
     //
     // Materials_Template
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.ClientSize = new System.Drawing.Size(1178, 736);
     this.Controls.Add(this.button1);
     this.Name = "Materials_Template";
     this.Controls.SetChildIndex(this.button1, 0);
     this.Controls.SetChildIndex(this.panel_TopPanel, 0);
     this.Controls.SetChildIndex(this._panel2_LeftControlPanel, 0);
     this._panel2_LeftControlPanel.ResumeLayout(false);
     this.panel_TopPanel.ResumeLayout(false);
     this.panel_TopPanel.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox_RightLogo)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox_LeftLogo)).EndInit();
     this.ResumeLayout(false);
 }
开发者ID:dingorkarj,项目名称:Local_Bike_Store_App,代码行数:38,代码来源:Materials_Template.designer.cs

示例11: InitializeComponent

        /// <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(ExportToExcel));
            this.button1 = new System.Windows.Forms.Button();
            this.SuspendLayout();
            // 
            // button1
            // 
            this.button1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("button1.BackgroundImage")));
            this.button1.Font = new System.Drawing.Font("Bookman Old Style", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            this.button1.Location = new System.Drawing.Point(12, 12);
            this.button1.Name = "button1";
            this.button1.Size = new System.Drawing.Size(112, 28);
            this.button1.TabIndex = 5;
            this.button1.Text = "Export";
            this.button1.UseVisualStyleBackColor = true;
            this.button1.Click += new System.EventHandler(this.ExportToExcel_Click);
            // 
            // ExportToExcel
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.BackColor = System.Drawing.SystemColors.GradientActiveCaption;
            this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
            this.ClientSize = new System.Drawing.Size(686, 385);
            this.Controls.Add(this.button1);
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.Name = "ExportToExcel";
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text = "Export To Excel";
            this.ResumeLayout(false);

        }
开发者ID:TishoAngelov,项目名称:TelerikAcademy,代码行数:37,代码来源:ExportToExcel.Designer.cs

示例12: InitializeComponent

 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.button1 = new System.Windows.Forms.Button();
     this.textBox1 = new System.Windows.Forms.TextBox();
     this.SuspendLayout();
     //
     // button1
     //
     this.button1.Location = new System.Drawing.Point(197, 227);
     this.button1.Name = "button1";
     this.button1.Size = new System.Drawing.Size(75, 23);
     this.button1.TabIndex = 0;
     this.button1.Text = "button1";
     this.button1.UseVisualStyleBackColor = true;
     //
     // textBox1
     //
     this.textBox1.Location = new System.Drawing.Point(12, 12);
     this.textBox1.Multiline = true;
     this.textBox1.Name = "textBox1";
     this.textBox1.Size = new System.Drawing.Size(260, 209);
     this.textBox1.TabIndex = 1;
     //
     // Form1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(284, 262);
     this.Controls.Add(this.textBox1);
     this.Controls.Add(this.button1);
     this.Name = "Form1";
     this.Text = "Form1";
     this.ResumeLayout(false);
     this.PerformLayout();
 }
开发者ID:paulbatum,项目名称:Reactive,代码行数:39,代码来源:Form1.designer.cs

示例13: InitializeComponent

 /// <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(Row));
     this.label1 = new System.Windows.Forms.Label();
     this.label2 = new System.Windows.Forms.Label();
     this.checkBox1 = new System.Windows.Forms.CheckBox();
     this.button1 = new System.Windows.Forms.Button();
     this.SuspendLayout();
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(9, 13);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(88, 13);
     this.label1.TabIndex = 0;
     this.label1.Text = "Huỳnh Văn Tuấn";
     //
     // label2
     //
     this.label2.AutoSize = true;
     this.label2.Location = new System.Drawing.Point(192, 13);
     this.label2.Name = "label2";
     this.label2.RightToLeft = System.Windows.Forms.RightToLeft.No;
     this.label2.Size = new System.Drawing.Size(67, 13);
     this.label2.TabIndex = 1;
     this.label2.Text = "0123456789";
     //
     // checkBox1
     //
     this.checkBox1.AutoSize = true;
     this.checkBox1.Location = new System.Drawing.Point(317, 11);
     this.checkBox1.Name = "checkBox1";
     this.checkBox1.Size = new System.Drawing.Size(15, 14);
     this.checkBox1.TabIndex = 2;
     this.checkBox1.UseVisualStyleBackColor = true;
     //
     // button1
     //
     this.button1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("button1.BackgroundImage")));
     this.button1.Location = new System.Drawing.Point(353, 6);
     this.button1.Name = "button1";
     this.button1.Size = new System.Drawing.Size(20, 22);
     this.button1.TabIndex = 3;
     this.button1.UseVisualStyleBackColor = true;
     this.button1.Click += new System.EventHandler(this.button1_Click);
     //
     // Row
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.button1);
     this.Controls.Add(this.checkBox1);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.label1);
     this.Name = "Row";
     this.Size = new System.Drawing.Size(403, 39);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
开发者ID:tunhuh95,项目名称:VSEE,代码行数:64,代码来源:Row.designer.cs

示例14: InitializeComponent

      /// <summary>
      /// Required method for Designer support - do not modify
      /// the contents of this method with the code editor.
      /// </summary>
      private void InitializeComponent()
      {
         System.Windows.Forms.Button callButton;
         callButton = new System.Windows.Forms.Button();
         this.SuspendLayout();
         // 
         // callButton
         // 
         callButton.Location = new System.Drawing.Point(75, 38);
         callButton.Name = "callButton";
         callButton.Size = new System.Drawing.Size(75, 23);
         callButton.TabIndex = 0;
         callButton.Text = "Call Service";
         callButton.Click += new System.EventHandler(this.OnCall);
         // 
         // MyClient
         // 
         this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
         this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
         this.ClientSize = new System.Drawing.Size(239, 113);
         this.Controls.Add(callButton);
         this.MaximizeBox = false;
         this.MinimizeBox = false;
         this.Name = "MyClient";
         this.Text = "ErrorHandler Attribute";
         this.ResumeLayout(false);

      }
开发者ID:ittray,项目名称:LocalDemo,代码行数:32,代码来源:MyClient.Designer.cs

示例15: InitializeComponent

 /// <summary>
 /// Método necesario para admitir el Diseñador. No se puede modificar
 /// el contenido del método con el editor de código.
 /// </summary>
 private void InitializeComponent()
 {
     this.dg_tipo_sector = new System.Windows.Forms.DataGridView();
     this.Column1 = new System.Windows.Forms.DataGridViewButtonColumn();
     this.btnSalir = new System.Windows.Forms.Button();
     ((System.ComponentModel.ISupportInitialize)(this.dg_tipo_sector)).BeginInit();
     this.SuspendLayout();
     //
     // dg_tipo_sector
     //
     this.dg_tipo_sector.AllowUserToAddRows = false;
     this.dg_tipo_sector.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.dg_tipo_sector.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
     this.Column1});
     this.dg_tipo_sector.Location = new System.Drawing.Point(17, 31);
     this.dg_tipo_sector.Margin = new System.Windows.Forms.Padding(2);
     this.dg_tipo_sector.Name = "dg_tipo_sector";
     this.dg_tipo_sector.ReadOnly = true;
     this.dg_tipo_sector.RowTemplate.Height = 28;
     this.dg_tipo_sector.Size = new System.Drawing.Size(369, 196);
     this.dg_tipo_sector.TabIndex = 0;
     this.dg_tipo_sector.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dg_tipo_sector_CellContentClick);
     //
     // Column1
     //
     this.Column1.HeaderText = "";
     this.Column1.Name = "Column1";
     this.Column1.ReadOnly = true;
     this.Column1.Text = "Eliminar";
     this.Column1.ToolTipText = "Eliminar";
     this.Column1.UseColumnTextForButtonValue = true;
     //
     // btnSalir
     //
     this.btnSalir.Location = new System.Drawing.Point(280, 240);
     this.btnSalir.Margin = new System.Windows.Forms.Padding(2);
     this.btnSalir.Name = "btnSalir";
     this.btnSalir.Size = new System.Drawing.Size(109, 41);
     this.btnSalir.TabIndex = 1;
     this.btnSalir.Text = "Salir";
     this.btnSalir.UseVisualStyleBackColor = true;
     this.btnSalir.Click += new System.EventHandler(this.btnSalir_Click);
     //
     // EliminarTipoSector
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.BackColor = System.Drawing.SystemColors.ActiveCaption;
     this.ClientSize = new System.Drawing.Size(402, 301);
     this.Controls.Add(this.btnSalir);
     this.Controls.Add(this.dg_tipo_sector);
     this.Margin = new System.Windows.Forms.Padding(2);
     this.MaximizeBox = false;
     this.Name = "EliminarTipoSector";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "Eliminar Tipo de Sector";
     this.Load += new System.EventHandler(this.EliminarTipoSector_Load);
     ((System.ComponentModel.ISupportInitialize)(this.dg_tipo_sector)).EndInit();
     this.ResumeLayout(false);
 }
开发者ID:martinc2015,项目名称:KRISMAGIT,代码行数:64,代码来源:EliminarTipoSector.designer.cs


注:本文中的System.Windows.Forms.Button类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。