• Microsoft Visual Basic 2005 - Chapter 2: Program and Graphical

    Microsoft Visual Basic 2005 - Chapter 2: Program and Graphical

    Click the New Project button on the Standard toolbar If necessary, in the Project types pane (left pane), click Visual Basic so it is selected If necessary, click Windows Application in the Templates pane Double-click the text,WindowsApplication1, in the Name text box to select the text. Type the project name. For this example, you could type HotelRoomSelection as the name Click the OK button in the New Project window

     53 p cit 17/04/2013 67 1

  • Microsoft Visual Basic 2005 - Chapter 1: Introduction to Visual Basic 2005 Programming

    Microsoft Visual Basic 2005 - Chapter 1: Introduction to Visual Basic 2005 Programming

    The set of instructions that directs a computer to perform tasks is called computer software, or a computer program. Computer hardware is the physical equipment associated with a computer. The basic function of many computer programs is to: accept data, manipulate the data (process), and create output data or information.

     38 p cit 17/04/2013 79 1

  • Microsoft Visual Basic .NET: Reloaded - Chapter 13: Creating web applications using ASP.NET

    Microsoft Visual Basic .NET: Reloaded - Chapter 13: Creating web applications using ASP.NET

    Internet – world’s largest computer network WWW (World Wide Web) Contains documents called web pages Web pages are stored on Web Servers Web Server is a computer with software to serve up web pages in response to client requests (web browser)

     47 p cit 17/04/2013 94 1

  • Microsoft Visual Basic .NET: Reloaded - Chapter 12: Using ADO.NET

    Microsoft Visual Basic .NET: Reloaded - Chapter 12: Using ADO.NET

    Database Organized collection of related information stored in a file on a disk Relational database stores information in tables composed of columns and rows Table is a group of related records Each row represents a record Each column represents a row Primary key is a field that uniquely identities a record in a table Foreign key is a field in one table used as the primary key in another table Tables are related by a common field or fields

     52 p cit 17/04/2013 96 1

  • Microsoft Visual Basic .NET: Reloaded - Chapter 11: Creating classes and objects

    Microsoft Visual Basic .NET: Reloaded - Chapter 11: Creating classes and objects

    Object-oriented programs are based on objects, which are instantiated from classes A class contains (encapsulates) the properties (attributes) that describe a person, place, or thing Examples: Student, School, Book An object is a specific instance of a class Examples: “You” are a student that goes to a specific school and are using this specific book VB has many built-in objects such as Textbox controls, Forms, and Labels

     44 p cit 17/04/2013 93 1

  • Microsoft Visual Basic .NET: Reloaded - Chapter 10: Structures and more controls

    Microsoft Visual Basic .NET: Reloaded - Chapter 10: Structures and more controls

    You can create your own data types using the Structure statement Referred to as “user-defined data types” or “structures” Structures contain “member variables” between Structure clause and End Structure clause Member variables are declared using Public keyword followed by the variable name and then the desired data type

     54 p cit 17/04/2013 92 1

  • Microsoft Visual Basic .NET: Reloaded - Chapter 9: Arrays

    Microsoft Visual Basic .NET: Reloaded - Chapter 9: Arrays

    Simple variable Also called scalar variable Is unrelated to any other variable in memory Array A group of variables that have the same name and data type and are related in some way You can picture an array as a group of small adjacent boxes inside the computer’s memory

     53 p cit 17/04/2013 84 1

  • Microsoft Visual Basic .NET: Reloaded - Chapter 8: Sequential access files and error handling

    Microsoft Visual Basic .NET: Reloaded - Chapter 8: Sequential access files and error handling

    Output files Files to which output is written Store output produced by the application Input Files Files that are read by the computer Application uses information stored in files Sequential Often referred to as “text files” Binary and Random Not covered in this text

     48 p cit 17/04/2013 100 1

  • Microsoft Visual Basic .NET: Reloaded - Chapter 7: Sub and function procedures

    Microsoft Visual Basic .NET: Reloaded - Chapter 7: Sub and function procedures

    Event procedure Associated with a specific object and event Example: button click event Independent Sub procedure A collection of code that can be invoked from one or more places in an application Processed only when called (invoked) from code Invoke Sub using a Call statement from another procedure

     36 p cit 17/04/2013 98 1

  • Microsoft Visual Basic .NET: Reloaded - Chapter 6: String manipulation

    Microsoft Visual Basic .NET: Reloaded - Chapter 6: String manipulation

    Applications often need to manipulate (process) strings Verify part number begins with a specific letter Determine whether last 3 characters of employee number are valid Start by determining number of characters contained in a string.

     39 p cit 17/04/2013 99 1

  • Microsoft Visual Basic .NET: Reloaded - Chapter 5: Repeating program instructions

    Microsoft Visual Basic .NET: Reloaded - Chapter 5: Repeating program instructions

    Can be used to code both pretest and posttest loops Do While or Do Until is a pretest loop Pretest loops should have a “priming read” Data input entry placed above loop Loop While or Loop Until is a posttest loop [While|Until] portion can only contain one of the keywords (While or Until) While processes instructions as long as the condition evaluates true Until processes instructions until the condition becomes true

     39 p cit 17/04/2013 83 1

  • Microsoft Visual Basic .NET: Reloaded - Chapter 4: Making decisions in a program

    Microsoft Visual Basic .NET: Reloaded - Chapter 4: Making decisions in a program

    Statement Block Set of instructions in “true” path (between keywords If and Then) Optional set of instructions in “false” path (between keywords Then and End If) Any items in square brackets are optional

     63 p cit 17/04/2013 80 1

Hướng dẫn khai thác thư viện số