Hi - I have a regex defined as [^A-Z0-9] and I am trying to allow only
uppercase alphanumeric input in a textbox. So I have Uppercasing set
to true elsewhere in the program and I have an OnKeyDown event handler
with
e.SuppressKeyPr ess = false;
if (myRegex.IsMatc h(e.KeyData.ToS tring()))
e.SuppressKeyPr ess = true;
Problem is shift key is being matched in the regex so shiftkey + any
alpha key is being rejected.
Any help appreciated ...
Thanks in advance,
El Squid
uppercase alphanumeric input in a textbox. So I have Uppercasing set
to true elsewhere in the program and I have an OnKeyDown event handler
with
e.SuppressKeyPr ess = false;
if (myRegex.IsMatc h(e.KeyData.ToS tring()))
e.SuppressKeyPr ess = true;
Problem is shift key is being matched in the regex so shiftkey + any
alpha key is being rejected.
Any help appreciated ...
Thanks in advance,
El Squid
Comment