I have mask text box with masking in it like (___)
ie. fisrt character of textbox is bracket "(" when I'll use tab key
and cursor come to this text box cursor blink before masked
character like |( that but I want to set cursor blink after
braket like (|. Please suggest how can I do this functionality.
Thanks
VulpesPosted Sep 4, 2012, 11:31 AM
First add the highlighted line to the form's constructor:
Now add the following method:
VulpesPosted Sep 5, 2012, 6:17 AM
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.enter.aspx
However, never mind if it seems to be working OK :)
Areeb QuaziPosted Sep 5, 2012, 5:29 AM
Enter event is present in visual studion which works same like GotFocus
and line given by you worked for me only change I added 1st line..
Thanks alot...
maskedTextBox1.Focus();
maskedTextBox1.SelectionStart = 1;