Programming in VB6                 Project 1:  Welcome

Objectives:

To introduce working with the VB6 interface and writing simple code.

To understand form, textbox, button, variable, declaration, assignment, string.

  1. Create a new folder and name it ‘Welcome’.

  1. Start Visual Basic 6 and create a new project. When asked for the type of project you want to create select ‘Standard EXE’.

  1. You will see the form, a grey rectangle. Select it and you will see a list of properties for the form down the right hand side. Scroll through them to find a property called Caption. Double click where it says 'Form1' and change the text to ‘WELCOME!’ You will see the caption at the top of the form has changed.
Join now!

  1. Select a Label from the Toolbox on the left hand side of the screen and draw it out in the top left corner of the form.  Find its Name property and change this to 'lblPrompt'.  Find the Caption property and change the text in it to ‘Type your name:’

                Toolbox        Run Program

                        FORM                Solution Explorer

                                                Properties

  1. Add from the Toolbox a TextBox on the right of lblPrompt.  Rename it 'txtInput'.  Delete the ...

This is a preview of the whole essay