private void TextBox_SizeChanged(object sender, System.EventArgs e) { AutoCompleteTextBox tb = sender as AutoCompleteTextBox; this.Height = tb.Height; }
/// <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; }