Excellent
The next step is to add two frames, two text boxes and two buttons.
The frames will act as 'containers for the text boxes but more importantly allow the function of the text boxes to be displayed on the form.
Locate the Toolbox. If you can't see it on screen then
View.Toolbox
In the array of controls th\at are displayed select the frame control. This is the square box with XY at the top.
Click on the tool the move to your form. Click and drag in your form to draw the two frames. The frames should be wide enough and deep enough to get a text box inside. You can do this by dragging or by setting the Height and Width properties. Try for 34 as the height of the frame, 6 for Left and Top.
You should end up with two boxes with the XY being replaced by Frame 1 and Frame 2
Change the caption of Frame 1 to 'Number of copies to print'
Change the caption of Frame 2 to 'Start Number'
Drag the size of the form and or frames to get everything to fit.
To get things lines up you can use the various options in the Format Menu item
Now add text boxes inside the frames. The text box control is the one with ABC in it next to the big A.
Its easier now to enter the properties for top left and height as 6,6,16
You can now click inside each text box and type any default text you wish to appear. We can also set the default text programmatically during the form initialization so it not essential to add default text now.
Change the names of the text boxes
TexrBox1 to txtCopies
TextBox2 to txtStartNumber
Finally for this stage add the two buttons using the button tool. This is the box with rounded corners containing 'ab'
Place the two buttons on the same horizontal line and then change the caption for the left button to 'Cancel' and the for the Right button to 'OK' and the Names of the buttons to cmdCancel and cmdOK respectively
See how you get on with those actions
|