Page 305 - Open Soource Technologies 304.indd
P. 305

Anil Sharma,  Lovely Professional University     Unit 14: Building Small Application





                              Unit 14: Building Small Application




                 CONTENTS

                 Objectives
                 Introduction
                 14.1 Creating Visual Basic Project
                 14.2 Creating Visual Basic Form
                 14.3 Sample Project Specifications
                 14.4 Building a Calculator with Visual Basic
                      14.4.1 Instructions
                 14.5 Summary
                 14.6 Keywords
                 14.7 Self Assessment Questions
                 14.8 Review Questions
                 14.9 Further Readings


               Objectives

               After studying this unit, you will be able to:
                   • Discuss creating visual basic projects and forms
                   • Explain sample project specification
                   • Explain building a calculator with visual basic and instructions

               Introduction

               Microsoft Visual Basic is a programming language based on the BASIC language, originally
               developed to make programming easier to learn. Visual Basic takes the familiar commands of
               BASIC and adds object-oriented tools and interfaces for designing WYSIWYG-like Windows
               applications and web controls, among many other enhancements.

               14.1 Creating Visual Basic Project

               When starting a new VB project, make sure it is a Standard EXE. The more advanced types will
               be covered later. The first object in a new Visual Basic Project is the Form. We can set a few basic
               properties for the form. Those properties will apply to all the objects (controls) we place onto
               the form. The Visual Basic Project is created the first time we do a Save. Make sure to pick a
               meaningful name and save it into a folder that we’ll be able to find later. It’s amazing how many
               projects get lost in the file structure because people can’t remember where they put them and
               how they were named.


                                      LOVELY PROFESSIONAL UNIVERSITY                        299
   300   301   302   303   304   305   306   307   308   309   310