csa computer4 lesson1

33 %
67 %
Information about csa computer4 lesson1

Published on July 19, 2008

Author: sdreyes102877

Source: authorstream.com

VISUAL BASIC : VISUAL BASIC A high level programming language that evolved from the earlier D.O.S. (Disk Operating System). ORIGIN BASIC (Beginner’s All Purpose Symbolic Instruction Code) In mid 1960s by Profs. John Kemeny and Thomas Kurtz of Dartmouth College. ENHANCEMENT - EVOLUTION It uses a G.U.I. that makes it easy to develop applications. Microsoft Windows created Graphical User Interface (GUI) in the late 1980s and the early 1990s. It provides an interesting set of tools that a programmer may “drag and drop controls” and spend lesser time in coding. It uses ENGLISH words, making it one of the most popular programming language today. Slide 2: Visual basic is an “event – driven” programming language, whereby procedures are automatically called whenever the end-user chooses menu items, clicks the mouse and moves objects on screen. Created in? Integrated Development Environment (IDE) IDE? allows a programmer to create, run and debug. It is the world’s most widely used RAD (Rapid Application Development) RAD? it’s the easiest way to create a program having different animations and interface. Slide 3: CREATOR MICROSOFT CORPORATION VISUAL BASIC TIMELINE Version 1 – May 1991 Version 2 – October 1992 (much improved version) Version 3 – May 1993 Version 4 – September 1995 Version 5 – March 1997 Version 6 - September 1998 ENVIRONMENT : To Load a Visual Basic Program you have to follow the steps below. Click the Start Button on the Taskbar. Select Programs and choose Visual Basic 6 from the pop-up menu. You can also open Visual Basic Program by double-clicking the icon if there is a shortcut icon set on the desktop. You will see the Project Wizard’s New Dialog Box, from this window, you can select several types of projects. This window has three Tabs; New, Existing and Recent. 4. Choose New and select the Standard Exe to begin a new Project. ENVIRONMENT Slide 5: The VISUAL BASIC ENVIRONMENT is made up of different components: 1. Menu Bar 2. Toolbar 3. Toolbox 4. Project Explorer 7. Form 5. Properties Window 6. Code Editor Window 8. Form Layout Window Slide 6: 1. Menu Bar a drop down list of commands. These commands will perform operations such as opening or saving a project or help you display the different windows needed in your environment. 2. Toolbar it has icons located horizontally after the Menu bar. These tools are shortcuts to the different menu items. Slide 7: 3. Toolbox a vertical grouping of controls found in the left side of the visual design screen. You will use this toolbox to get the controls needed in creating your user interface. Pointer (not a control) Label Frame CheckBox ComboBox HScrollBar Timer DirListBox Shape Image OLE PictureBox TextBox CommandButton OptionButton ListBox VScrollBar . DriveListBox FileListBox Line Data Slide 8: 4. Project Explorer Window this displays a hierarchical list of all the different components that make up your application. Each time you add a new component (ex: form), it will show up in this window. Internal Name (Project Name) Internal Name (File Name) Internal Name is used in code to refer to a specific form File/Project Name of a form should be unique. 5. Properties Window it displays a list of all the properties available to the object that has a focus. The list of properties may be different as you select a different component on your form. Slide 9: 6. Code Editor Window this serves as the “Editor” for entering the application code. You can open the Code Window by double – clicking the form. Below are the 2 parts of the code editor window: Slide 10: 7. Form This is the main object used to create the user interface for your application. All controls are placed in a form to create a screen that the user will interact with. Slide 11: 8. Form Layout gives designer more control over the screen positioning of the form. With this example, your Form will be seen on the upper left corner of your computer monitor by the time you run the program. Sample Program : Sample Program

Add a comment

Related presentations