Car number input Control design summary

Source: Internet
Author: User

In the business application system, the car number input as the most frequent action, its ease of use or not, will greatly affect the user's business processing speed. In China, the layout of the car number has certain rules, first of all the car xwould for the provinces of shorthand, the second is the city's letter code, the number of letters involved in all uppercase. Therefore, in the design of the car number input control, you can use the ComboBox control, the head two relatively fixed content as a drop-down box option, involving the letter input is not case-sensitive, are recognized as uppercase.
The setup steps for the car number input control are as follows:
1, drag a ComboBox control from the Toolbox, as a car number input control, the ComboBox control's editing mode is set to the standard mode, which can be entered and selectable, as shown in:

2, tied down the data source of the frame, do a maintenance of the head of the node, to obtain the maintenance of the front information, assembled into a DataTable, give the ComboBox, complete the data source binding
3. Set the CharacterCasing property of the drop-down box control to upper, and convert all alphabetic input in the control to uppercase.

4, after the user chooses, the front information, the ComboBox default will select the content cursor selects all, the user again enters, often will accidentally the front information to cover out, causes the user input the mistake, in order to reduce this kind of mistake the occurrence, needs when the user chooses to finish the front control, The cursor can be automatically after the selection of text, to implement this function, it is not complex, in the user's closed event, the following logic is added:

at this point, the design of a car number input control is basically completed, allowing the user to be more efficient car number input.

Car number input Control design summary

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.