private void OnAutoCompleteSelectedIndexChanged(object sender, EventArgs e) { ExpressionText.Focus(); if (_autoBox.Visible && _autoBox.SelectedIndex >= 0 && _autoBox.Items.Count > 0) { string tt = ((_autoBox.SelectedItem as ImageListBoxItem).Tag as AutoCompleteItem).ToolTipText; Point pt = GetCaretPoint(); pt.X += _autoBox.Width + 10; pt.Y += 65; _autoCompleteTooltip.Show(tt, this, pt.X, pt.Y); } }
private void OnAutoCompleteKeyDown(object sender, KeyEventArgs e) { ExpressionText.Focus(); }