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


C# Forms.ComboBox类代码示例

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


System.Windows.Forms.ComboBox类属于命名空间,在下文中一共展示了System.Windows.Forms.ComboBox类的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.comboBox1 = new System.Windows.Forms.ComboBox();
     this.label1 = new System.Windows.Forms.Label();
     this.SuspendLayout();
     //
     // comboBox1
     //
     this.comboBox1.FormattingEnabled = true;
     this.comboBox1.Location = new System.Drawing.Point(37, 2);
     this.comboBox1.Name = "comboBox1";
     this.comboBox1.Size = new System.Drawing.Size(129, 21);
     this.comboBox1.TabIndex = 0;
     //
     // label1
     //
     this.label1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.label1.Location = new System.Drawing.Point(3, 0);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(28, 23);
     this.label1.TabIndex = 1;
     this.label1.Text = "0";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // MappedDataTypeCtrl
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.label1);
     this.Controls.Add(this.comboBox1);
     this.Name = "MappedDataTypeCtrl";
     this.Size = new System.Drawing.Size(172, 27);
     this.ResumeLayout(false);
 }
开发者ID:BgRva,项目名称:Blob1,代码行数:38,代码来源:MappedDataTypeCtrl.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.label1 = new System.Windows.Forms.Label();
     this.comboBox1 = new System.Windows.Forms.ComboBox();
     this.button1 = new System.Windows.Forms.Button();
     this.button2 = new System.Windows.Forms.Button();
     this.SuspendLayout();
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(13, 13);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(129, 13);
     this.label1.TabIndex = 0;
     this.label1.Text = "Output format for textures:";
     //
     // comboBox1
     //
     this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboBox1.FormattingEnabled = true;
     this.comboBox1.Location = new System.Drawing.Point(12, 30);
     this.comboBox1.Name = "comboBox1";
     this.comboBox1.Size = new System.Drawing.Size(268, 21);
     this.comboBox1.TabIndex = 1;
     //
     // button1
     //
     this.button1.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.button1.Location = new System.Drawing.Point(200, 57);
     this.button1.Name = "button1";
     this.button1.Size = new System.Drawing.Size(80, 23);
     this.button1.TabIndex = 2;
     this.button1.Text = "Cancel";
     this.button1.UseVisualStyleBackColor = true;
     //
     // button2
     //
     this.button2.DialogResult = System.Windows.Forms.DialogResult.OK;
     this.button2.Location = new System.Drawing.Point(114, 57);
     this.button2.Name = "button2";
     this.button2.Size = new System.Drawing.Size(80, 23);
     this.button2.TabIndex = 3;
     this.button2.Text = "OK";
     this.button2.UseVisualStyleBackColor = true;
     //
     // ExportAllAskFormat
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(292, 92);
     this.Controls.Add(this.button2);
     this.Controls.Add(this.button1);
     this.Controls.Add(this.comboBox1);
     this.Controls.Add(this.label1);
     this.Name = "ExportAllAskFormat";
     this.Text = "Export All";
     this.ResumeLayout(false);
     this.PerformLayout();
 }
开发者ID:blahblahblahblah831,项目名称:brawltools2,代码行数:64,代码来源:ExportAllAskFormat.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.combo = new System.Windows.Forms.ComboBox();
     this.SuspendLayout();
     //
     // combo
     //
     this.combo.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
     this.combo.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
     this.combo.Dock = System.Windows.Forms.DockStyle.Fill;
     this.combo.DropDownWidth = 189;
     this.combo.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F);
     this.combo.FormattingEnabled = true;
     this.combo.Location = new System.Drawing.Point(0, 0);
     this.combo.Name = "combo";
     this.combo.Size = new System.Drawing.Size(189, 28);
     this.combo.TabIndex = 0;
     this.combo.KeyDown += new System.Windows.Forms.KeyEventHandler(this.combo_KeyDown);
     this.combo.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.combo_KeyPress);
     //
     // ucDropDownList
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.combo);
     this.Name = "ucDropDownList";
     this.Size = new System.Drawing.Size(189, 28);
     this.Enter += new System.EventHandler(this.ucDropDownList_Enter);
     this.ResumeLayout(false);
 }
开发者ID:pragmasolutions,项目名称:Maxikioscos,代码行数:34,代码来源:ucDropDownList.designer.cs

示例4: InitializeComponent

 /// <summary> 
 /// Required method for Designer support - do not modify 
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.comboBox1 = new System.Windows.Forms.ComboBox();
     this.SuspendLayout();
     //
     // comboBox1
     //
     this.comboBox1.FormattingEnabled = true;
     this.comboBox1.Location = new System.Drawing.Point(0, 0);
     this.comboBox1.Name = "comboBox1";
     this.comboBox1.Size = new System.Drawing.Size(442, 21);
     this.comboBox1.TabIndex = 0;
     this.comboBox1.Text = "Введите название услуги";
     this.comboBox1.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.comboBox1_MouseDoubleClick);
     this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
     this.comboBox1.Enter += new System.EventHandler(this.comboBox1_Enter);
     this.comboBox1.KeyUp += new System.Windows.Forms.KeyEventHandler(this.searchPatientComboBox1_KeyUp);
     //
     // SearchReestrBox
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.comboBox1);
     this.Name = "SearchReestrBox";
     this.Size = new System.Drawing.Size(443, 22);
     this.ResumeLayout(false);
 }
开发者ID:oeai,项目名称:medx,代码行数:31,代码来源:SearchReestrBox.designer.cs

示例5: InitializeComponent

		private void InitializeComponent()
		{
			_pathComboBox = new System.Windows.Forms.ComboBox();
			_browseButton = new System.Windows.Forms.Button();
			this.SuspendLayout();
			// 
			// pathComboBox
			// 
			_pathComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
				| System.Windows.Forms.AnchorStyles.Right)));
			_pathComboBox.Location = new System.Drawing.Point(0, 2);
			_pathComboBox.Name = "pathComboBox";
			_pathComboBox.Size = new System.Drawing.Size(211, 21);
			_pathComboBox.TabIndex = 0;
			// 
			// browseButton
			// 
			_browseButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
			_browseButton.FlatStyle = System.Windows.Forms.FlatStyle.System;
			_browseButton.Location = new System.Drawing.Point(217, 1);
			_browseButton.Name = "browseButton";
			_browseButton.Size = new System.Drawing.Size(32, 23);
			_browseButton.TabIndex = 1;
			_browseButton.Click += new System.EventHandler(this.browseButton_Click);
			// 
			// NuGenFileSelector
			// 
			this.Controls.Add(_browseButton);
			this.Controls.Add(_pathComboBox);
			this.Size = new System.Drawing.Size(250, 25);
			this.ResumeLayout(false);
		}
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:32,代码来源:NuGenFileSelector.Designer.cs

示例6: 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.comboBox1 = new System.Windows.Forms.ComboBox();
			this.label1 = new System.Windows.Forms.Label();
			this.SuspendLayout();
			// 
			// comboBox1
			// 
			this.comboBox1.FormattingEnabled = true;
			this.comboBox1.Location = new System.Drawing.Point(117, 12);
			this.comboBox1.Name = "comboBox1";
			this.comboBox1.Size = new System.Drawing.Size(252, 21);
			this.comboBox1.TabIndex = 11;
			this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.ComboBox1SelectedIndexChanged);
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(12, 12);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(100, 23);
			this.label1.TabIndex = 12;
			this.label1.Text = "Таблицы:";
			// 
			// Annex1
			// 
			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			this.ClientSize = new System.Drawing.Size(582, 340);
			this.Controls.Add(this.label1);
			this.Controls.Add(this.comboBox1);
			this.Name = "Annex1";
			this.Text = "Annex1";
			this.ResumeLayout(false);

		}
开发者ID:glebmillenium,项目名称:projects,代码行数:40,代码来源:Annex1.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.components = new System.ComponentModel.Container();
     System.Windows.Forms.Label label1;
     this.newTekConsumerBindingSource = new System.Windows.Forms.BindingSource(this.components);
     this.comboBox5 = new System.Windows.Forms.ComboBox();
     this.toolTip = new System.Windows.Forms.ToolTip(this.components);
     label1 = new System.Windows.Forms.Label();
     ((System.ComponentModel.ISupportInitialize)(this.newTekConsumerBindingSource)).BeginInit();
     this.SuspendLayout();
     //
     // label1
     //
     label1.AutoSize = true;
     label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
     label1.Location = new System.Drawing.Point(12, 10);
     label1.Name = "label1";
     label1.Size = new System.Drawing.Size(87, 13);
     label1.TabIndex = 17;
     label1.Text = "Channel Layout";
     //
     // newTekConsumerBindingSource
     //
     this.newTekConsumerBindingSource.AllowNew = false;
     this.newTekConsumerBindingSource.DataSource = typeof(CasparCGFrontend.DecklinkConsumer);
     //
     // comboBox5
     //
     this.comboBox5.DataBindings.Add(new System.Windows.Forms.Binding("SelectedItem", this.newTekConsumerBindingSource, "ChannelLayout", true));
     this.comboBox5.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboBox5.FormattingEnabled = true;
     this.comboBox5.Items.AddRange(new object[] {
     "mono",
     "stereo",
     "dts",
     "dolbye",
     "dolbydigital",
     "smpte",
     "passthru"});
     this.comboBox5.Location = new System.Drawing.Point(105, 7);
     this.comboBox5.Name = "comboBox5";
     this.comboBox5.Size = new System.Drawing.Size(121, 21);
     this.comboBox5.TabIndex = 18;
     this.toolTip.SetToolTip(this.comboBox5, "This is the audio channels configuration. Passthru will pass 16 channels of audio" +
     " withour modifying it. More information: http://casparcg.com/wiki/Content_/_Medi" +
     "a#Audio Default is Stereo.");
     //
     // NewTekIVGAConsumerControl
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     this.Controls.Add(this.comboBox5);
     this.Controls.Add(label1);
     this.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Name = "NewTekIVGAConsumerControl";
     ((System.ComponentModel.ISupportInitialize)(this.newTekConsumerBindingSource)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
开发者ID:dust63,项目名称:Frontend,代码行数:64,代码来源:NewTekIVGAConsumerControl.designer.cs

示例8: InitializeComponent

 /// <summary> 
 /// 设计器支持所需的方法 - 不要
 /// 使用代码编辑器修改此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     this.cmbClass = new System.Windows.Forms.ComboBox();
     this.SuspendLayout();
     //
     // cmbClass
     //
     this.cmbClass.Dock = System.Windows.Forms.DockStyle.Fill;
     this.cmbClass.FormattingEnabled = true;
     this.cmbClass.Location = new System.Drawing.Point(0, 0);
     this.cmbClass.Margin = new System.Windows.Forms.Padding(4);
     this.cmbClass.Name = "cmbClass";
     this.cmbClass.Size = new System.Drawing.Size(146, 29);
     this.cmbClass.TabIndex = 0;
     //
     // ComboBoxClass
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(10F, 21F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.cmbClass);
     this.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.Margin = new System.Windows.Forms.Padding(5);
     this.Name = "ComboBoxClass";
     this.Size = new System.Drawing.Size(146, 32);
     this.ResumeLayout(false);
 }
开发者ID:bonizlee,项目名称:ClassQuestionMark,代码行数:30,代码来源:ComboBoxClass.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(ServerEncryptionBox));
     this.comboBox = new System.Windows.Forms.ComboBox();
     this.label5 = new System.Windows.Forms.Label();
     this.SuspendLayout();
     //
     // comboBox
     //
     resources.ApplyResources(this.comboBox, "comboBox");
     this.comboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboBox.FormattingEnabled = true;
     this.comboBox.Name = "comboBox";
     this.comboBox.Sorted = true;
     //
     // label5
     //
     resources.ApplyResources(this.label5, "label5");
     this.label5.Name = "label5";
     //
     // ServerEncryptionBox
     //
     resources.ApplyResources(this, "$this");
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.comboBox);
     this.Controls.Add(this.label5);
     this.MaximumSize = new System.Drawing.Size(352, 37);
     this.MinimumSize = new System.Drawing.Size(50, 37);
     this.Name = "ServerEncryptionBox";
     this.ResumeLayout(false);
     this.PerformLayout();
 }
开发者ID:greeduomacro,项目名称:phoenix,代码行数:36,代码来源:ServerEncryptionBox.designer.cs

示例10: _initControl

 public override void _initControl()
 {
     if (null == mComboBox || mComboBox.IsDisposed)
     {
         mComboBox = new System.Windows.Forms.ComboBox();
         mComboBox.Enabled = mEnable;
         if (null != mSize)
         {
             mComboBox.Size = new Size(mSize._getWidth(), mSize._getHeight());
         }
         int x_ = mPoint._getX();
         int y_ = mPoint._getY();
         mComboBox.Location = new Point(x_, y_);
         if (null != m_tSelectTextSlot)
         {
             mComboBox.SelectedText = this.m_tSelectTextSlot();
         }
         foreach (ComboBoxItem i in mComboBoxItems)
         {
             string name_ = i._getName();
             ICommand command_ = i._getCommand();
             mCommands.Add(command_);
             mComboBox.Items.Add(name_);
         }
         mComboBox.SelectionChangeCommitted += this._selectionChangeCommitted;
     }
 }
开发者ID:zyouhua,项目名称:nvwa,代码行数:27,代码来源:ComboBox.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()
 {
     this.comboBox1 = new System.Windows.Forms.ComboBox();
     this.SuspendLayout();
     //
     // comboBox1
     //
     this.comboBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                 | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.comboBox1.DisplayMember = "Caption";
     this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboBox1.FormattingEnabled = true;
     this.comboBox1.Location = new System.Drawing.Point(0, 0);
     this.comboBox1.Margin = new System.Windows.Forms.Padding(0);
     this.comboBox1.Name = "comboBox1";
     this.comboBox1.Size = new System.Drawing.Size(197, 21);
     this.comboBox1.TabIndex = 0;
     this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
     //
     // ExcelListWindows
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.comboBox1);
     this.Name = "ExcelListWindows";
     this.Size = new System.Drawing.Size(197, 21);
     this.Load += new System.EventHandler(this.ExcelListWindows_Load);
     this.ResumeLayout(false);
 }
开发者ID:alnemer,项目名称:excel-qa-tools,代码行数:34,代码来源:ExcelListWindows.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.label3 = new System.Windows.Forms.Label();
     this.LblEntrar = new System.Windows.Forms.Label();
     this.CboRoles = new System.Windows.Forms.ComboBox();
     this.SuspendLayout();
     //
     // label3
     //
     this.label3.AutoSize = true;
     this.label3.Location = new System.Drawing.Point(40, 27);
     this.label3.Name = "label3";
     this.label3.Size = new System.Drawing.Size(72, 13);
     this.label3.TabIndex = 11;
     this.label3.Text = "ROL A USAR";
     //
     // LblEntrar
     //
     this.LblEntrar.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(155)))), ((int)(((byte)(89)))), ((int)(((byte)(182)))));
     this.LblEntrar.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.LblEntrar.Cursor = System.Windows.Forms.Cursors.Hand;
     this.LblEntrar.ForeColor = System.Drawing.Color.White;
     this.LblEntrar.Location = new System.Drawing.Point(140, 107);
     this.LblEntrar.Name = "LblEntrar";
     this.LblEntrar.Size = new System.Drawing.Size(88, 32);
     this.LblEntrar.TabIndex = 6;
     this.LblEntrar.Text = "LISTO";
     this.LblEntrar.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.LblEntrar.Click += new System.EventHandler(this.LblEntrar_Click);
     //
     // CboRoles
     //
     this.CboRoles.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.CboRoles.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.CboRoles.FormattingEnabled = true;
     this.CboRoles.Location = new System.Drawing.Point(43, 43);
     this.CboRoles.Name = "CboRoles";
     this.CboRoles.Size = new System.Drawing.Size(296, 21);
     this.CboRoles.TabIndex = 12;
     //
     // FrmChooseRol
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(240)))), ((int)(((byte)(241)))));
     this.ClientSize = new System.Drawing.Size(372, 168);
     this.Controls.Add(this.CboRoles);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.LblEntrar);
     this.MaximizeBox = false;
     this.MaximumSize = new System.Drawing.Size(388, 206);
     this.MinimizeBox = false;
     this.MinimumSize = new System.Drawing.Size(388, 206);
     this.Name = "FrmChooseRol";
     this.Text = "FrbaCommerce - Elegir rol";
     this.Load += new System.EventHandler(this.FrmChooseRol_Load);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
开发者ID:norchow,项目名称:gestiondedatos,代码行数:63,代码来源:FrmChooseRol.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()
 {
     this.cmbPorts = new System.Windows.Forms.ComboBox();
     this.label1 = new System.Windows.Forms.Label();
     this.label2 = new System.Windows.Forms.Label();
     this.tbBaudRate = new System.Windows.Forms.TextBox();
     this.SuspendLayout();
     //
     // cmbPorts
     //
     this.cmbPorts.Location = new System.Drawing.Point(115, 24);
     this.cmbPorts.Name = "cmbPorts";
     this.cmbPorts.Size = new System.Drawing.Size(100, 21);
     this.cmbPorts.TabIndex = 0;
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(4, 25);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(100, 20);
     this.label1.TabIndex = 5;
     this.label1.Text = "Serial port";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(4, 49);
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size(100, 20);
     this.label2.TabIndex = 4;
     this.label2.Text = "Baudrate";
     //
     // tbBaudRate
     //
     this.tbBaudRate.Location = new System.Drawing.Point(115, 53);
     this.tbBaudRate.Name = "tbBaudRate";
     this.tbBaudRate.Size = new System.Drawing.Size(100, 20);
     this.tbBaudRate.TabIndex = 3;
     this.tbBaudRate.Text = "4800";
     //
     // FrmGpsSettings
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
     this.ClientSize = new System.Drawing.Size(228, 87);
     this.Controls.Add(this.tbBaudRate);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.cmbPorts);
     this.MaximizeBox = false;
     this.MaximumSize = new System.Drawing.Size(244, 123);
     this.MinimizeBox = false;
     this.MinimumSize = new System.Drawing.Size(244, 123);
     this.Name = "FrmGpsSettings";
     this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Text = "GPS Settings";
     this.ResumeLayout(false);
     this.PerformLayout();
 }
开发者ID:fivepmtechnology,项目名称:SharpGPS,代码行数:63,代码来源:frmgpssettings.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()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ControlPartList));
     this.contextMenuPart = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.renameToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.deleteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.toolTipNamespace = new System.Windows.Forms.ToolTip(this.components);
     this.labelDataSource = new System.Windows.Forms.Label();
     this.comboBoxPartList = new System.Windows.Forms.ComboBox();
     this.contextMenuPart.SuspendLayout();
     this.SuspendLayout();
     //
     // contextMenuPart
     //
     resources.ApplyResources(this.contextMenuPart, "contextMenuPart");
     this.contextMenuPart.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.renameToolStripMenuItem,
     this.deleteToolStripMenuItem});
     this.contextMenuPart.Name = "contextMenuPart";
     this.contextMenuPart.Opening += new System.ComponentModel.CancelEventHandler(this.contextMenuPart_Opening);
     //
     // renameToolStripMenuItem
     //
     this.renameToolStripMenuItem.Name = "renameToolStripMenuItem";
     resources.ApplyResources(this.renameToolStripMenuItem, "renameToolStripMenuItem");
     this.renameToolStripMenuItem.Click += new System.EventHandler(this.renameToolStripMenuItem_Click);
     //
     // deleteToolStripMenuItem
     //
     this.deleteToolStripMenuItem.Name = "deleteToolStripMenuItem";
     resources.ApplyResources(this.deleteToolStripMenuItem, "deleteToolStripMenuItem");
     this.deleteToolStripMenuItem.Click += new System.EventHandler(this.deleteToolStripMenuItem_Click);
     //
     // labelDataSource
     //
     resources.ApplyResources(this.labelDataSource, "labelDataSource");
     this.labelDataSource.Name = "labelDataSource";
     //
     // comboBoxPartList
     //
     resources.ApplyResources(this.comboBoxPartList, "comboBoxPartList");
     this.comboBoxPartList.ContextMenuStrip = this.contextMenuPart;
     this.comboBoxPartList.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboBoxPartList.FormattingEnabled = true;
     this.comboBoxPartList.Name = "comboBoxPartList";
     this.comboBoxPartList.SelectedIndexChanged += new System.EventHandler(this.comboBoxPartList_SelectedIndexChanged);
     this.comboBoxPartList.MouseHover += new System.EventHandler(this.comboBoxPartList_MouseHover);
     //
     // ControlPartList
     //
     resources.ApplyResources(this, "$this");
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.comboBoxPartList);
     this.Controls.Add(this.labelDataSource);
     this.Name = "ControlPartList";
     this.contextMenuPart.ResumeLayout(false);
     this.ResumeLayout(false);
 }
开发者ID:plutext,项目名称:OpenDoPE-Mapping-WordAddIn,代码行数:63,代码来源:ControlPartList.designer.cs

示例15: AddPanel

        public void AddPanel()
        {
            int yCord = 0;

            tmpNumUpDown = new System.Windows.Forms.NumericUpDown();
            tmpComboBox = new System.Windows.Forms.ComboBox();
            tmpPanel = new System.Windows.Forms.Panel();

            // numericUpDown2
            //
            tmpNumUpDown.Location = new System.Drawing.Point(3, 3);
            tmpNumUpDown.Name = "numericUpDown";
            tmpNumUpDown.Size = new System.Drawing.Size(108, 20);
            tmpNumUpDown.TabIndex = 1;
            //
            // comboBox1
            //
            tmpComboBox.FormattingEnabled = true;
            tmpComboBox.Items.AddRange(new object[] {
                "AA(4.0)",
                "BA(3.5)",
                "BB(3.0)",
                "CB(2.5)",
                "CC(2.0)",
                "DC(1.5)",
                "DD(1.0)",
                "FD(0.5)",
                "FF,F0(0.0)"
            });
            tmpComboBox.Location = new System.Drawing.Point(132, 2);
            tmpComboBox.Name = "comboBox";
            tmpComboBox.SelectedIndex = 0;
            tmpComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            tmpComboBox.Size = new System.Drawing.Size(121, 21);
            tmpComboBox.TabIndex = 2;
            //
            // panel1
            //

            tmpPanel.Controls.Add(tmpComboBox);
            tmpPanel.Controls.Add(tmpNumUpDown);

            tmpPanel.Name = "panel";
            tmpPanel.Size = new System.Drawing.Size(256, 28);

            if (PanelList.Count > 0) {

                yCord = PanelList[PanelList.Count - 1].Location.Y;
                yCord += 30;
                tmpPanel.Location = new System.Drawing.Point(0, yCord);

            }
            else tmpPanel.Location = new System.Drawing.Point(0, 0);

            PanelList.Add(tmpPanel);
            GradeList.Add(tmpComboBox);
            CredictList.Add(tmpNumUpDown);
        }
开发者ID:megoman123,项目名称:FinishedBasicProjects,代码行数:58,代码来源:AGNOCalculator.cs


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