Presentation is loading. Please wait.

Presentation is loading. Please wait.

CMPF114 Computer Literacy Chapter 3 The Visual Basic Environment 1.

Similar presentations


Presentation on theme: "CMPF114 Computer Literacy Chapter 3 The Visual Basic Environment 1."— Presentation transcript:

1 CMPF114 Computer Literacy Chapter 3 The Visual Basic Environment 1

2 Visual Basic Environment The Visual Basic environment is where you create and plan your user interface. The Visual Basic elements are used for program development at the design time. 2

3 Visual Basic Controls Some V.Basic controls: –Text box –Label –Command button –List boxes –Combo boxes –Option buttons –Check boxes –Scroll bar –Menus –Common dialog boxes –Input boxes –Message boxes –Images & timers 3

4 Text Box –Only used when the user needs to type in an input. Label Box –Displays text as caption. –The different between a label and a text box control is that a label displays text as Caption, whereas a text box control displays text as Text Command button –Acts as a control for the user to click on it. –Once the command button control is clicked, the appropriate procedure will be activated List boxes –Allow user to type more text in list box Combo boxes –Allow to have a list of items from which the user can make a selection –Has three distinct styles: Dropdown combo box Simple combo box Dropdown list 4 Visual Basic Controls

5 Option buttons –Are used when only one button of a group may be selected. –A group of option buttons inside a frame also function together Check boxes –Allow the user to select or deselect an option. Scroll Bars –Horizontal scroll bar and vertical scroll bar –Similar to the scroll bars in the Windows environment which allow you to scroll through a document or window. Menus –Consist of a menu bar with menu names, each of which drops down to display a list of menu commands Common dialog box –Is a custom control which allows you to use a set of predefined standard dialog boxes in your projects such as specifying colors and fonts, printing, opening and saving. Image –Holds a picture Timer –The timer control triggers an event after a specified amount of time –The timer control is not visible during run-time 5 Visual Basic Controls

6 The End 6


Download ppt "CMPF114 Computer Literacy Chapter 3 The Visual Basic Environment 1."

Similar presentations


Ads by Google