I ve a mask text box. mask is 00 00 00 00 format. my requiement is ,the box should accepts hexa decimal value too... my expect format look like 0A 0C 0a 0f...pls help me..thanks in advance..

Recommended Answers

All 2 Replies

MaskedTextBox doesn't have a mask for hexadecimal characters, you'll have to use a normal textbox and intercept the KeyPress event to validate input (and to insert the spaces as needed).

MaskedTextBox doesn't have a mask for hexadecimal characters, you'll have to use a normal textbox and intercept the KeyPress event to validate input (and to insert the spaces as needed).

Can you explain how we can intercept the KeyPress event to validate input of text box.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.