TextBox controls with visual conversion and verification functions, similar to ComboBox and other functions/operations: UnderLineText

Source: Internet
Author: User

Recently I am working on my own invoicing software. In order to change the TextBox to the TextBox (an underline) in my manager, I made a UserControl by referring to the two articles in CodeProject, userControl has the following functions:
-Space appearance switch:
ControlFormat: UnderLine, TextBox
-Whether it can be blank:
Nullable
-You can control the character length/byte length:
LengthType: LetterLength, ByteLength
MaxLength
-Validation Function
ValidationMode: None, ValidCharacters, InvalidCharacters, Letters, Numbers, RegularExpression
ValidationText
RegExPatternMode: Custom, Email, Url, IP, Dates, Zip
ErrorMessage
-Underline style
XBackColor: the background color of the control.
LineColor, underline color
LineWidth, underline width
-Similar to the data selection function of ComboBox
DataFrom: Select, HandInput
EnableDataSource: whether to enable the data source Mode
DataSource
KeyColumn, key value field, number
Wide column, abbreviation/Manual Number Field
ValueColumn, Value Field
SIndex, SelectedIndex
-Three-Value record (Key, Short, Value = Text)
Key
Short
Value
-Carriage return Mode
EnterMode: Enter, Tab, SwitchEnterAndTab, TabWhenTextNotNull
EnterStatus
-Carriage return Positioning
EnterLocate
LocateMode, positioning mode: Short, Value, locate Value, ValueShort
.
The following code and demo of the control are released for testing.

Download: UnderLineText-src

Note: This source code is for your reference only. I am not responsible for any problems arising during use and all problems that arise.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.