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