MaskedTextBox KeyPress event handler

K

kryptomoon

I have a KeyPress event handler for a MaskedTextBox control. According
to the event documentation, if I set e.Handled to 'true' it should
discard the input character, but it doesn't. After the event, the
TextChanged event is being fired as if the character is accepted.

Is this a bug? Do you have any workarounds?

Thanks in advance,
Murat
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top