![]() |
![]() |
![]() |
|
|
||
|
TUTORIAL 1 OVERVIEW Lesson 1 Lesson 2 Lesson 3 Lesson 4 Lesson 5 CHECKPOINT EXTRA INFO Object Orientated programming (OOPS)
|
TUTORIAL1 AIM - To Understand How to Use the VB6 Program |
|
|
Entering 23456 will take you back to this page. You need to enter the numbers of the answers in the correct order above. DON'T forget the .html ending! Open the Visual Basic (VB) Programming Environment. Start >> Programs>> Visual Basic 6. Open a new Standard EXE file. At first, the workspace appears quite complex.
To save your form use the drop down File Menu on the menu toolbar. File>> Save Form As, browse to your documents and create a VB Work folder. Save your form as FirstForm to this folder. Once you have saved the form note that the Project must also be saved. If you check the Project window you’ll see that the Project is the outer folder and the form is inside the Project folder. Programs can have many forms but for now you will only be using one. If you have more than one form in your project window the program may not run correctly. Right click on any extra forms in the project window and delete them. For now, always check you have ONE form inside the project. If you loose the form and cannot see it in the window Shift+F7 will allow you to view the form. If you cannot see the form, when you open a project, double click on the Project folder in the Project window. The form will become a Graphical User Interface or GUI for a user. The program we will create is a simple Paper, Rock, Scissors game. This exercise is designed so that you learn how to use the VB environment. Do not worry about the code – that will be given to you to cut and paste. At this stage you are not expected to understand why the code works although you may be able to understand some of it. During Tutorial 2 you will begin to code your own programs but for now just learn where things are in the workspace. It is suggested that you close the Form Layout window and extend the Properties window as shown below.
Look at the pictures above and learn the locations and appearance of
Enter the numbers of the objects above as the next URL i.e. if you think the order is 23456 then you enter this as the next URL. The current URL shown at the top of the page is the 'address' of the web page. The current URL ending is 'http://www......./HTML/Tut1/Lesson1.html ' You would the need to remove the 'Lesson1' and replace this with 23456 keeping the file extension of .html. Your finished address ending would look like this 'http://www......./HTML/Tut1/23456.html'. Entering 23456 will take you back to this page. You need to enter the numbers of the answers in the correct order above. DON'T forget the .html ending! If you receive and ERROR message or page use the 'back button' at the top of the page to bring you back to this page:- First check you have entered the new URL ending correctly Second |
||