コード例 #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.autoCompleteTextBox1 = new AutoCompleteTextBox();
     this.SuspendLayout();
     //
     // autoCompleteTextBox1
     //
     this.autoCompleteTextBox1.BorderStyle             = System.Windows.Forms.BorderStyle.None;
     this.autoCompleteTextBox1.Dock                    = System.Windows.Forms.DockStyle.Fill;
     this.autoCompleteTextBox1.Location                = new System.Drawing.Point(4, 4);
     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(120, 13);
     this.autoCompleteTextBox1.TabIndex                = 0;
     this.autoCompleteTextBox1.Text                    = "autoCompleteTextBox1";
     this.autoCompleteTextBox1.SizeChanged            += new System.EventHandler(this.TextBox_SizeChanged);
     //
     // CoolTextBox
     //
     this.BackColor = System.Drawing.SystemColors.Window;
     this.Controls.Add(this.autoCompleteTextBox1);
     this.DockPadding.All = 4;
     this.Name            = "CoolTextBox";
     this.Size            = new System.Drawing.Size(128, 22);
     this.ResumeLayout(false);
 }
コード例 #2
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.toolTip1             = new System.Windows.Forms.ToolTip();
     this.autoCompleteTextBox1 = new Femiani.Forms.UI.Input.AutoCompleteTextBox();
     this.SuspendLayout();
     //
     // toolTip1
     //
     this.toolTip1.ToolTipIcon  = System.Windows.Forms.ToolTipIcon.Info;
     this.toolTip1.ToolTipTitle = "Địa chỉ";
     //
     // autoCompleteTextBox1
     //
     this.autoCompleteTextBox1.BorderStyle             = System.Windows.Forms.BorderStyle.None;
     this.autoCompleteTextBox1.Dock                    = System.Windows.Forms.DockStyle.Fill;
     this.autoCompleteTextBox1.intTextLengthTrigger    = 0;
     this.autoCompleteTextBox1.IsAuto                  = false;
     this.autoCompleteTextBox1.KinhDo                  = 0F;
     this.autoCompleteTextBox1.Location                = new System.Drawing.Point(4, 4);
     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(117, 13);
     this.autoCompleteTextBox1.TabIndex                = 0;
     this.autoCompleteTextBox1.Text                    = "autoCompleteTextBox";
     this.autoCompleteTextBox1.TextReturn              = "";
     this.toolTip1.SetToolTip(this.autoCompleteTextBox1, "(\"10 dthoang -- gần bdien HN\" = 10,Đinh Tiên Hoàng,Hoàn Kiếm)");
     this.autoCompleteTextBox1.ViDo         = 0F;
     this.autoCompleteTextBox1.SizeChanged += new System.EventHandler(this.TextBox_SizeChanged);
     //
     // CoolTextBox
     //
     this.BackColor = System.Drawing.SystemColors.Window;
     this.Controls.Add(this.autoCompleteTextBox1);
     this.Name    = "CoolTextBox";
     this.Padding = new System.Windows.Forms.Padding(4);
     this.Size    = new System.Drawing.Size(125, 23);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
コード例 #3
0
        private void TextBox_SizeChanged(object sender, System.EventArgs e)
        {
            AutoCompleteTextBox tb = sender as AutoCompleteTextBox;

            this.Height = tb.Height + 8;
        }
コード例 #4
0
ファイル: AutoCompleteTextBox.cs プロジェクト: sywymj/NCMS
 /// <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;
 }
コード例 #5
0
ファイル: CoolTextBox.cs プロジェクト: sywymj/NCMS
 /// <summary> 
 /// Required method for Designer support - do not modify 
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.autoCompleteTextBox1 = new AutoCompleteTextBox();
     this.SuspendLayout();
     //
     // autoCompleteTextBox1
     //
     this.autoCompleteTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.autoCompleteTextBox1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.autoCompleteTextBox1.Location = new System.Drawing.Point(4, 4);
     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(120, 13);
     this.autoCompleteTextBox1.TabIndex = 0;
     this.autoCompleteTextBox1.Text = "autoCompleteTextBox1";
     this.autoCompleteTextBox1.SizeChanged += new System.EventHandler(this.TextBox_SizeChanged);
     //
     // CoolTextBox
     //
     this.BackColor = System.Drawing.SystemColors.Window;
     this.Controls.Add(this.autoCompleteTextBox1);
     this.DockPadding.All = 4;
     this.Name = "CoolTextBox";
     this.Size = new System.Drawing.Size(128, 22);
     this.ResumeLayout(false);
 }
コード例 #6
0
 /// <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;
 }