Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I mask A textBox.But when i run the application and Open the form My cursor is blinking after the masked area in textbox and i have to set the cursor at first character.
Can any one tell the solution that when i open the form my cursor is at initial point.
Posted

Assuming you are using a standard MaskedTextBox:
C#
maskedTextBox1.Select(0, 0);
 
Share this answer
 
Use Focus method.

Like if you want your cursor should select a textbox then write TextBox1.Focus().
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900