Task 3 :: Further controls
In this task, we add a number of controls that are available in the toolbar. The aim of this is to make us aware of the interface elements we have available to us in creating our programs in Visual Basic.
- Take a look at the following program
further controls
To open the program, click on the link. You should be asked if you want to open or save the file you are downloading. Choose to open the program, it should run on your computer directly.
- This program implements one version of each of the controls available in the toolbar.
- Try to turn your form into the form you see in this example program.
- This will involve adding one of each of the controls and changing one of their properties. In most cases, it is the "Caption" property, but it may be another. For some controls, you will not need to add anything as they do not show up in the example program. For example, you cannot see any timer control, so you do not need to add one.
- If you are getting stuck on what property to change, try the following exercise to "cheat" from the example program.
- Open the example program's project which can be found here. To open this project, you will need to create a copy on your own computer by saving it to your own drive. Firstly, you need to make a directory for this project. To save the project, follow the following steps for all the files you find at the linked location.
To save a file, right click on its name and choose "Save Target As...". Then save it in the new directory you have created specifically for this project (remember all projects should be in their own directories).
To open the project, double click on the .vbp file.
- You should be presented with the form you are trying to create with all its controls. If you are not, then you need to navigate to it in the project browser (which is on the right hand side of the IDE). Expand the forms list and then double click on the form you want to see.
- Highlight a control you are having trouble with
- Look to the properties box and find the property name that corresponds to the value you are trying to replicate.
- Now return to your own project and set this property.
- Run this program.