Hi all
I wanna know how to set input from left to right like the default behavior in an ordery textbox.
thanks in advance
For an optional digit placeholder that is otherwise treated as a string (including being input from left-to-right), use "9" instead. So, for three optional digits, your mask would be: 999
What you're seeing is correct behavior for using "n" in an InputMask.
For more information on input masks and their behavior, please refer to the API documentation of the InputMask property (link leads to article in online help documentation in NetAdvantage for .NET 2009 Volume 1).
Hi ,
Thanks for the reply,
Yes this helps but i have one question though. Let's say i have 999 and i write some thing like below in textchanged event.
If Me.UltraMaskedEdit1.Text.Length > 0 Then
If CType(Me.UltraMaskedEdit1.Text.Trim, Integer) > 100 Then
MessageBox.Show("Invalid")
Me.UltraMaskedEdit1.Text = ""
Me.UltraMaskedEdit1.Refresh()
End If
The problem is if i enter value greater than 100, the value in the textbox changed to empty but the cursor blinks not at the left most position rather at the end or at the middle. This is my first issue that made me to switch to ultraMaskedEdit control from windows MaskedEdit. You see my point?
How can i make it to start to the left most position after any validation?
thanks
When you put the editor back into edit mode (which you probably will need to do explicitly, since the MessageBox will force the editor out of edit mode), set the SelectionStart and SelectionLength properties of the editor both to 0.
Thanks
I overlooked this settings since i tried them when i use the windows maskededit. There they didn't help at all.
Any way thank you for your prompt reply