codedui中的蒙面文本框问题 [英] Masked textbox issue in codedui

查看:96
本文介绍了codedui中的蒙面文本框问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序中有一个蒙版文本框,格式为   __ 12-4567。
如何自动输入数字。

I have one masked textbox in my application with format  __12-4567. how can i enter digits automatically.

如何使用winedit添加数字。

提前致谢..

推荐答案

您好

1)您可以尝试这样做吗?删除编辑框的内容

1) Can you try doing this. Delete the contents of the Edit box by

Keyboard.SendKeys(control, "{End}", ModifierKeys.Control);Keyboard.SendKeys(control, "{Home}", ModifierKeys.Control | ModifierKeys.Shift);Keyboard.SendKeys(control, "{Delete}");

2)键入什么你想要的(请包括_和 - 也可以在任何需要的地方)

2) Type what ever you want (Please include the _ and - also wherever required)

Keyboard.SendKeys(control," __ 12-456");

Keyboard.SendKeys(control, "__12-456");


这篇关于codedui中的蒙面文本框问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆