问题描述
我有一个项目,其中有一些第三方控制。我有一个TextEdit和MemoEdit在我的表单,我想限制用户可以输入的字符数。您可以等待最新版本,但有一些解决方法,如屏蔽,帮助属性和/或字符计数文字改变了事件。以下是解决方法的一些链接:
掩码解决方法:
助手属性解决方法: a href =http://www.devexpress.com/Support/Center/p/S131769.aspx =nofollow> http://www.devexpress.com/Support/Center/p/S131769.aspx
文字更改/ char count:
I have a project with some 3rd-party controls in it. I have a TextEdit and a MemoEdit in my form and I want to limit the number of characters that the user can enter.
You can wait for the newest version but there are a few workarounds such as masking, helper properties and/or character counting on the text changed event. Here are some links to the workarounds:
Mask workaround: http://www.devexpress.com/Support/Center/p/Q250641.aspx
Helper property workaround: http://www.devexpress.com/Support/Center/p/S131769.aspx
Text change/char count: http://www.qtcentre.org/threads/6776-Text-edit-and-maxLength
这篇关于限制DevExpress TextEdit和MemoEdit控件的输入长度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!