VISUAL BASIC
During the Visual Basic segment, it is usually vital that you attend every class and work on your assignment as we go along.INTRODUCTION TO VISUAL BASIC
Example: you will write a grass roots VISUAL-BASIC system that calculate loans, quote prices, and print customer letters. This is the VENUS case in your VISUAL BASIC book distributed in class . Venus Motors wants to write a software program. The program will have display 5 screens to the users, which VISUAL BASIC calls forms. Each screen (form) will be stored in a separate file under the names: FRMTITLE.FRM -- displays mainmenu FRMCUST.FRM -- customer name & address FRMNOTES.FRM -- notes to customers FRMPAY.FRM -- calculates a loan payment FRMQUOTE.FRM -- calculates a price quote Note: In VISUAL BASIC, all forms are stored with a file extension .FRM DEMONSTRATION Together, the five forms are called a project. The project is stored under a file name with an extension .VBP For your assignment, you will store the project under the name: T4VENUS.VBP In Visual Basic, when you load a project, it grabs all the forms associated with the project and tells VISUAL BASIC which form will be displayed first to the user during runntime. To accomplish your assignment, we will build one form at a time. The first form we will build is the FRMTITLE.FRM. To build a form, you load VISUAL BASIC into RAM. VISUAL BASIC will display the following to you: Project Window -- stores the project name & name of all the forms associated with this project. (We’ll name our project T4VENUS.VBP Form Window, used to “paint” and “program” a form Toolbox Window -- contains the objects which we “drag” onto the form. Sample objects: image like the rocket ship label like “Venus Motors are Rocketing...” option button like “star XL O“ Properties Window -- after putting the objects on a form, we set their properties Each object type has its own set of properties. For example, the image has the following properties: name: imgrocket picture: (icon) stretch: true For example, the label has the following properties: caption: “Venus Sales are ....” font: MS Sans Serf font size: 18 autosize: true