Author: Xingda Computer technology company (www.study01job.com) Guo Baoli
I. Public part
A. You should use meaningful names for all controls as much as possible, and important controls do not allow the use of ambiguous names such as pb_1.
B. Large fonts: Each window control font is Arial, the font size is 12th, and the character color is black. Small font: Each window control font for the song, the font size is 9th, the word color is black.
C. Display control and input control background color separate, display the control is gray (window colors), the input control is white.
D. The input area and display area are placed separately.
E. The buttons are arranged in a compact position, positioned vertically on the right side of the window and placed on the right at the bottom of the window, because the left-handed operator is a minority.
F. The character class control is aligned to the left, the number class control is right-aligned, and the Format property must be set in the desired format; The date control must be guaranteed to display the required date format fully and apply the YYYY-MM-DD style. and have a leading 0 (to avoid the 2000 problem), you can use left alignment or alignment.
The recommended height for the G.commandbutton control is 104.
Second, the control rules
1. Static text box
Static text box naming rules: St + ' _ ' + name (if label is not renamed).
The appearance stipulates as follows:
Background color: buttonface;
Foreground color: black;
Edge; box: none;
High; degree: 72.
; It is recommended to add a full-width colon (:) thereafter.
2. Single-line edit box
Single-line edit box naming rule: SLE + ' _ ' + name.
(1) Appearance
Background color: white;
Foreground color: black;
; edge; frame: 3D lowered;
; high; degree: 72.
(2) Procedure description
A. Responding to events recommend customizing Keydown events and try not to use Modify events.
B. The control background changes to dark blue when the focus is obtained, the font color turns yellow, and the default color is restored when the focus is lost.