private void txtHex_KeyDown(object sender, KeyEventArgs e) { if (e.Key >= Key.A && e.Key <= Key.F) { e.Handled = false; } else if (e.Key < Key.D0 || e.Key > Key.D9) { if (e.Key < Key.NumPad0 || e.Key > Key.NumPad9) { e.Handled = true; } } }
Handled
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)