Step-by-step Establish PocketPC Applications (2)
Author: Dekker MSN: dekkerdillon@hotmail.com Email: Dekker99@163.com
2. Task 2 Add controls to the form
l To open the Form1 properties form, click Form and Select View | Properties Form Menu Command or Press F4. Set the text attribute of Form1 as "Pocket PC App
Figure 3 FORM1 Form Property
l Set the minimizebox property to false. When the form is closed, the program will automatically uninstall without retained, which is the default of the Pocket PC program.
· To view the toolbox, point in the toolbox
Or choose the trial view | Toolbox menu command.
· If you do not choose the default state, select the device control in the toolbox.
l Drag a Label control from the device control tab of the toolbox and put it in the upper left corner of the form.
l To open the properties form of the tag control, right-click on the tab control and select Properties.
l Set the properties of the label as follows.
Text "Establish the first PocketPC application"
Font (Expand The Font Node)
Name - "Song"
Size - 10
Bold - True
Size (Expand the size node)
Width - 144
l Drag a Button control from the device control tag of the toolbox and put it on the right side of the form label.
l To open the properties form of the button control, right click on the button control and select Properties.
l Set the properties of the button as follows.
Text "get"
l To view the toolbox, point in the toolbox
Or select the view | Toolbox menu command.
l Drag a PictureBox control from the device control tab of the toolbox and put it in the lower left of the form.
l To open the properties form of the PictureBox control, right click on the PictureBox control and select Properties.
l Set the properties of the PictureBox controls as follows.
Size (Expand the size node)
Width 83 HEIGHT - 140
Figure 4 Add a Picture Box control
l View Toolbox and point in the toolbox
Or select the view | Toolbox menu command.
l Drag a TextBox control from the device control tag of the toolbox and place it in the lower right of the form.
l To open the properties form of the TextBox control, right-click on the TextBox control and select Properties. Set the properties of the TextBox controls as follows.
Readonly - True Multiline - True Scrollbars - Vertical Font (Expand The Font Node)
Name - Arial Size - 9
Size (Expand the size node)
Width - 100 Height - 128 TEXT - "Welcome to PocketPC, please click Get Directory!" L To view the toolbox, point in the toolbox
Or select the view | Toolbox menu command.
l Drag a ListView control from the device control tag of the toolbox and place it in the middle of the form.
Click and drag to adjust the size below.
Figure 5 FORM1 design results