When you start typing Alphanumeric characters when a tree has focus the nodes will automatically select the node starting with the character. I don't want the selection to happen but the following code doesn't stop it.
private void OnKeyDownTree(object sender, KeyEventArgs e) { if (IsAlphaNumeric(e.KeyValue)) { e.Handled = true; } }
Anyone have any ideas on how to have an UltraTree ignore Alphanumeric characters so the nodes don't get selected?
thanks
-Ken
Thanks Mike.
Hi Ken,
this.ultraTree1.AllowKeyboardSearch = false;
Hello,
Please use KeyPress event instead KeyDown. To handle keyboard events only at the form level and not enable other controls to receive keyboard events, set the KeyPressEventArgs.Handled property in your form's KeyPress event-handling method to true.
Please let me know if you have any further questions.