1 / 14

Visual Basic Project 1

Visual Basic Project 1. IDS 306 Spring 1999 V. Murphy. close button. window title. menu name. title bar. minimize button. menu bar. menu. maximize button. User Interfaces & Applications. User Interface -- way in which you give instructions to a computer and receive feedback

adriano
Télécharger la présentation

Visual Basic Project 1

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Visual BasicProject 1 IDS 306 Spring 1999 V. Murphy

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

  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!

More Related