MaskedTextBox text dissapears, if it's selected, when pressing tab or cursors

Feb 2, 2012 at 8:36 AM

I came across this strange bug:

If all text in the MaskedTextbox is selected and you then press tab (so that control loses focus) or cursor key, all text disappears (only mask remains)


That's first bug - the second is this one (but it's not so disturbing):

Let's say, that mask is 00:00 - if I select only part of the text - for example 00:0, then I can't type anything - if all text is selected, then you can normaly type numbers.


Or maybe there is just some setting, which I missed?

Feb 2, 2012 at 4:53 PM

This has been fixed, but it is only available in the latest source code download located under the "Main" folder.

Feb 2, 2012 at 4:54 PM

The second issue is by design.  I am using a .NET class that handles the masking so I am restricted by that class.  That is why you cannot type over just part of the selected text.

Feb 4, 2012 at 7:53 AM

Cool, that's great, that it's already fixed. I'll try it right away.

BTW, thanks for this collection of useful controls.