限制DevExpress TextEdit和MemoEdit控件的输入长度 [英] Limit the input length of a DevExpress TextEdit and MemoEdit controls

查看:1476
本文介绍了限制DevExpress TextEdit和MemoEdit控件的输入长度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个项目,其中有一些第三方控制。我有一个TextEdit和MemoEdit在我的表单,我想限制用户可以输入的字符数。

解决方案

您可以等待最新版本,但有一些解决方法,如屏蔽,帮助属性和/或字符计数文字改变了事件。以下是解决方法的一些链接:



掩码解决方法: http://www.devexpress.com/Support/Center/p/Q250641.aspx



助手属性解决方法: a href =http://www.devexpress.com/Support/Center/p/S131769.aspx =nofollow> http://www.devexpress.com/Support/Center/p/S131769.aspx



文字更改/ char count: http://www.qtcentre.org/threads/6776-Text-edit-and-maxLength


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控件的输入长度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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