Windows应用程序中的文本框 [英] Textbox in windows application

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

问题描述



我正在使用一个SMS应用程序,在该应用程序中,我必须在文本框字段中仅接受150个字符.150个字符后,用户应无法键入任何字符.

我该怎么办?


谢谢

Hi,

i am working on a SMS application in which i have to accept only 150 characters in a textbox field.After 150 characters user should not be able to type any character.

how can i do this??


thanks

推荐答案

看看MaxLength属性.

http://msdn.microsoft.com/en-us/library/system.windows.forms.textboxbase.maxlength.aspx [ ^ ]
Look at the MaxLength property.

http://msdn.microsoft.com/en-us/library/system.windows.forms.textboxbase.maxlength.aspx[^]


这篇关于Windows应用程序中的文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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