DevExpress TextEdit limit the input of content formats, such as numerical only

Scenes

Winform controls -DevExpress18 download and install the registration and use in VS:

https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/100061243

DevExpress reference to the above will be installed and the introduction to the toolbox.

So here are using the VS2013 installed DevExpress is 14 version.

effect

 

 

achieve

TextEdit is selected on the form, and then click the top right corner of the triangle number, select ChangeMask

 

 

Then select Mask type here is to limit the number of types, so choose Numeric.

Then select below Predefined masks, there will be left after the corresponding preview and select the right, where the input is positive or negative real number.

 

 

Guess you like

Origin www.cnblogs.com/badaoliumangqizhi/p/11434162.html