/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(ComboBoxTyped)); this.btDown = new System.Windows.Forms.Button(); this.txtBox = new TextBoxTyped(); this.SuspendLayout(); // // btDown // this.btDown.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Right))); this.btDown.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.btDown.Image = ((System.Drawing.Image)(resources.GetObject("btDown.Image"))); this.btDown.Location = new System.Drawing.Point(142, 0); this.btDown.Name = "btDown"; this.btDown.Size = new System.Drawing.Size(18, 20); this.btDown.TabIndex = 1; this.btDown.Click += new EventHandler(this.btDown_Click); // // txtBox // this.txtBox.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.txtBox.AutoSize = false; this.txtBox.BackColor = System.Drawing.Color.White; this.txtBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.txtBox.EnableAutoValidation = false; this.txtBox.EnableEnterKeyValidate = false; this.txtBox.EnableEscapeKeyUndo = true; this.txtBox.EnableLastValidValue = true; this.txtBox.ErrorProvider = null; this.txtBox.ErrorProviderMessage = "Invalid value"; this.txtBox.ForceFormatText = true; this.txtBox.HideSelection = false; this.txtBox.Location = new System.Drawing.Point(0, 0); this.txtBox.Name = "txtBox"; this.txtBox.Size = new System.Drawing.Size(142, 20); this.txtBox.TabIndex = 0; this.txtBox.Text = string.Empty; this.txtBox.WordWrap = false; this.txtBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtBox_KeyDown); this.txtBox.TextChanged += new EventHandler(this.txtBox_TextChanged); // // ComboBoxTyped // this.Controls.Add(this.txtBox); this.Controls.Add(this.btDown); this.Name = "ComboBoxTyped"; this.Size = new System.Drawing.Size(160, 20); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.btDown = new System.Windows.Forms.Button(); this.txtBox = new TextBoxTyped(); this.SuspendLayout(); // // btDown // this.btDown.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Right))); this.btDown.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.btDown.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btDown.Location = new System.Drawing.Point(136, 0); this.btDown.Name = "btDown"; this.btDown.Size = new System.Drawing.Size(27, 23); this.btDown.TabIndex = 1; this.btDown.Text = "..."; this.btDown.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.btDown.Click += new EventHandler(this.btDown_Click); // // txtBox // this.txtBox.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.txtBox.AutoSize = false; this.txtBox.BackColor = System.Drawing.Color.White; this.txtBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.txtBox.EnableAutoValidation = false; this.txtBox.EnableEnterKeyValidate = false; this.txtBox.EnableEscapeKeyUndo = true; this.txtBox.EnableLastValidValue = true; this.txtBox.ErrorProvider = null; this.txtBox.ErrorProviderMessage = "Invalid value"; this.txtBox.ForceFormatText = true; this.txtBox.HideSelection = false; this.txtBox.Location = new System.Drawing.Point(0, 0); this.txtBox.Name = "txtBox"; this.txtBox.Size = new System.Drawing.Size(136, 20); this.txtBox.TabIndex = 0; this.txtBox.Text = string.Empty; this.txtBox.WordWrap = false; // // TextBoxTypedButton // this.Controls.Add(this.txtBox); this.Controls.Add(this.btDown); this.Name = "TextBoxTypedButton"; this.Size = new System.Drawing.Size(160, 20); this.ResumeLayout(false); }
public override Control CreateEditorControl() { TextBoxTyped l_Control = new TextBoxTyped(); l_Control.BorderStyle = BorderStyle.None; l_Control.AutoSize = false; return l_Control; }