Search code examples
c#.netwinformsmaskedtextbox

MaskedTextBox and hexadecimal


How can I create a MaskedTextBox for accepting hexadecimals and spaces?

I am using Windows Forms in .NET.


Solution

  • I solve my problem using KeyDown event. The KeyEventArgs.SuppressKeyPress will handle exactly what I want!