I have an Ultramaskededit control in read-only mode. If I click into it it will not release the cursor to click around or select another item in the current form. I can click on another form and it works (for some reason) but in the current form it is locked in the editor? Any suggestions?
Robert
Well... that's kinda the point of having required characters. The user cannot leave the control without entering all of the required data.
It's a little odd that the control still does this when it's Read-Only, of course. But then again, it's a bit odd to have a read-only control with required characters. :)
Cool that works, I am still a bit surprised that it essentially blocked the user from doing anything until the input was correct.
Okay, well, that explains it. The # sign is a required character. Therefore "77040" is not a valid entry - because it omits required characters. So the control will not allow the user to leave the control with an invalid value.
You might want to check the documentation and see if there's a non-required numeric mask you can use. I think "n" might be what you want here, like "nnnnn-nnnn".
Here is the project:
Very simple - Button sets zip code to "77040" the mask should be #####-####
Once you click into it try closing the form ... nothing.
The ZIP codes I have are random either 5 digits or the full nine, this is just to make it nicer to display for the user. There should be no input to this but I don't want to have a disable field because it the user wants to copy / paste they won't be able to.
VS2008 - NetAdvatage 9.2 Win CLR2x
Hi Robert,
It sounds like whatever text is in the control is not valid for the mask. Although I don't see how that could possibly be if the field is readonly.
Can you duplicate this behavior in a small sample project so we can check it out?