in my masked text box, the mask property is setting like aa aa aa aa.my issue is, the mouse cursor is not setting the initial character automatically,when i click the mask text box..pls help me.. Thanks in advance....

Please explain little better, because I didnt understood what you need.

I did it like:

public Form1() //constructor
        {
            InitializeComponent();
            maskedTextBox1.Mask = "aa aa aa aa";
        }

and it works fine.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.