开发者

masked box asp.net

开发者 https://www.devze.com 2023-02-04 17:36 出处:网络
I use masked edit box control in my application. When user click masked edit box, cursor locate in middle of control

I use masked edit box control in my application. When user click masked edit box, cursor locate in middle of control or end of control. users have to use cursor key to bring cursor front of control. Is there any way I can set cursor location in front of co开发者_运维技巧ntrol when user click the control?


set the SelectionStart Property for MaskedTextBox

private void maskedTextBox1_Click(object sender, EventArgs e)
{
    maskedTextBox1.SelectionStart = 0;
}
0

精彩评论

暂无评论...
验证码 换一张
取 消