Exemple #1
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.lblTitle             = new System.Windows.Forms.Label();
     this.autoCompleteTextBox1 = new LBTextBox.AutoCompleteTextBox();
     this.SuspendLayout();
     //
     // lblTitle
     //
     this.lblTitle.Dock      = System.Windows.Forms.DockStyle.Left;
     this.lblTitle.Location  = new System.Drawing.Point(0, 0);
     this.lblTitle.Name      = "lblTitle";
     this.lblTitle.Size      = new System.Drawing.Size(17, 25);
     this.lblTitle.TabIndex  = 1;
     this.lblTitle.Text      = "  ";
     this.lblTitle.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // autoCompleteTextBox1
     //
     this.autoCompleteTextBox1.BorderStyle             = System.Windows.Forms.BorderStyle.FixedSingle;
     this.autoCompleteTextBox1.Dock                    = System.Windows.Forms.DockStyle.Right;
     this.autoCompleteTextBox1.Location                = new System.Drawing.Point(20, 0);
     this.autoCompleteTextBox1.Margin                  = new System.Windows.Forms.Padding(0);
     this.autoCompleteTextBox1.Multiline               = true;
     this.autoCompleteTextBox1.Name                    = "autoCompleteTextBox1";
     this.autoCompleteTextBox1.PopupBorderStyle        = System.Windows.Forms.BorderStyle.FixedSingle;
     this.autoCompleteTextBox1.PopupOffset             = new System.Drawing.Point(12, 4);
     this.autoCompleteTextBox1.PopupSelectionBackColor = System.Drawing.SystemColors.Highlight;
     this.autoCompleteTextBox1.PopupSelectionForeColor = System.Drawing.SystemColors.HighlightText;
     this.autoCompleteTextBox1.PopupWidth              = 120;
     this.autoCompleteTextBox1.Size                    = new System.Drawing.Size(164, 25);
     this.autoCompleteTextBox1.TabIndex                = 0;
     this.autoCompleteTextBox1.Text                    = "autoCompleteTextBox1";
     this.autoCompleteTextBox1.SizeChanged            += new System.EventHandler(this.TextBox_SizeChanged);
     //
     // CoolTextBox
     //
     this.BackColor = System.Drawing.Color.Transparent;
     this.Controls.Add(this.autoCompleteTextBox1);
     this.Controls.Add(this.lblTitle);
     this.Margin = new System.Windows.Forms.Padding(0);
     this.Name   = "CoolTextBox";
     this.Size   = new System.Drawing.Size(184, 25);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
 /// <summary>
 /// Initializes a new instance of <see cref="WinHook"/>
 /// </summary>
 /// <param name="tbox">The <see cref="AutoCompleteTextBox"/> the hook is running for.</param>
 public WinHook(AutoCompleteTextBox tbox)
 {
     this.tb = tbox;
 }
Exemple #3
0
        private void TextBox_SizeChanged(object sender, System.EventArgs e)
        {
            AutoCompleteTextBox tb = sender as AutoCompleteTextBox;

            this.Height = tb.Height;
        }