Presentation is loading. Please wait.

Presentation is loading. Please wait.

Visual Basic Project 1 IDS 306 Spring 1999 V. Murphy.

Similar presentations


Presentation on theme: "Visual Basic Project 1 IDS 306 Spring 1999 V. Murphy."— Presentation transcript:

1 Visual Basic Project 1 IDS 306 Spring 1999 V. Murphy

2 menu bar window title title bar menu name minimize button close button maximize button menu

3 User Interfaces & Applications User Interface -- way in which you give instructions to a computer and receive feedback Graphical User Interface (GUI) -- allows use of both text and graphical images Application software -- computer programs that perform a specific function

4 Control Creation Edition available for download from –http://msdn.microsoft.com/vbasic/downloads/ cce/default.asp –http://www.download.com can not make.exe files –Stand-alone application -- a.k.a. an EXE, runs independently of the VB system should contain all the features you will need for this class

5 Development Environment Integrated Development Environment (IDE) Single document interface (SDI) -- independent windows on the desktop Multiple document interface (MDI) -- windows within windows; contained within single parent window

6 Design Time vs. Run Time Design time -- time during which you build an application Run time -- time during which you use an application for its intended purpose Title bar will say [design] during design time and [run] during run time

7 Projects and Forms Project (.vbp) –starts with a form –may contain several forms Form (.frm) –becomes the application window during run time

8 3 Steps in Creating Applications 1. Create the Interface 2. Set the Properties 3. Write the Code

9 Toolbox and Properties List object box property list property values

10 Writing Code Events -- messages sent to an object when the application runs –can be initiated by user or by application –trigger procedures Procedures -- groups of code statements Code Statements -- instructions to computer, written at design time, execute at run time Event procedures in VB written in blocks of code called subroutines

11 Function, Methods & Comments Function -- code that transforms one or more values into a new value –Val function -- takes whatever value is given and converts it to a number Methods -- code statements that can be applied to an object to change its attributes or behavior –SetFocus method -- causes focus to be changed to a specific control on a form Comment -- explanatory text within a procedure –begins with an apostrophe (‘) or keyword Rem

12 Code Window

13 Printing

14 Help!


Download ppt "Visual Basic Project 1 IDS 306 Spring 1999 V. Murphy."

Similar presentations


Ads by Google