コード例 #1
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     autoCompleteTextBox1 = new JetCoders.Forms.UI.Input.AutoCompleteTextBox();
     SuspendLayout();
     //
     // autoCompleteTextBox1
     //
     autoCompleteTextBox1.Dock                    = System.Windows.Forms.DockStyle.Fill;
     autoCompleteTextBox1.Location                = new System.Drawing.Point(4, 4);
     autoCompleteTextBox1.Name                    = "autoCompleteTextBox1";
     autoCompleteTextBox1.PopupBorderStyle        = System.Windows.Forms.BorderStyle.FixedSingle;
     autoCompleteTextBox1.PopupOffset             = new System.Drawing.Point(0, 4);
     autoCompleteTextBox1.PopupSelectionBackColor = System.Drawing.SystemColors.ControlText;
     autoCompleteTextBox1.PopupSelectionForeColor = System.Drawing.SystemColors.HighlightText;
     autoCompleteTextBox1.PopupWidth              = 350;
     autoCompleteTextBox1.Size                    = new System.Drawing.Size(0, 20);
     autoCompleteTextBox1.TabIndex                = 0;
     autoCompleteTextBox1.SizeChanged            += new System.EventHandler(TextBox_SizeChanged);
     //
     // CoolTextBox
     //
     AutoSize  = true;
     BackColor = System.Drawing.SystemColors.Window;
     Controls.Add(autoCompleteTextBox1);
     Name    = "CoolTextBox";
     Padding = new System.Windows.Forms.Padding(4);
     Size    = new System.Drawing.Size(8, 8);
     ResumeLayout(false);
     PerformLayout();
 }
コード例 #2
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)
 {
     tb = tbox;
 }