Top Banner
The Visual Basic Integrated Development Environment
14
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: The Visual Basic Integrated Development Environment.

The Visual Basic Integrated Development Environment

Page 2: The Visual Basic Integrated Development Environment.

Visual Basic Startup Screen Main window Form window Project window (Project Explorer) Properties window Form layout window Toolbox

Page 3: The Visual Basic Integrated Development Environment.
Page 4: The Visual Basic Integrated Development Environment.
Page 5: The Visual Basic Integrated Development Environment.
Page 6: The Visual Basic Integrated Development Environment.
Page 7: The Visual Basic Integrated Development Environment.
Page 8: The Visual Basic Integrated Development Environment.
Page 9: The Visual Basic Integrated Development Environment.

Visual Basic Objects All of the controls in the toolbox

are objects. The form is also an object.

Visual Basic Objects have properties events methods

Page 10: The Visual Basic Integrated Development Environment.

Object Properties A property is a named attribute of

an object. used to change the behavior and

appearance of an object can be set at design time or with

code at run time frmFirst.BackColor = vbBlue

Page 11: The Visual Basic Integrated Development Environment.

Object Events action taken by the object in response

to an event such as a mouse click or key press

an event procedure tells an object how to respond to an event

Example: Private Sub Form_Click()

lblNew.Caption = “You clicked the form!” End Sub

Page 12: The Visual Basic Integrated Development Environment.

Object Methods code held by the object that

operate on the object’s data methods in Visual Basic are

predefined procedures frmFirst.PrintForm

Page 13: The Visual Basic Integrated Development Environment.

The Code Window

Page 14: The Visual Basic Integrated Development Environment.

Projects Every Visual Basic application is

defined and saved as a project. Each project contains a collection

of files such as forms or modules. Save all forms and modules

individually within the project. Save the project (.vbp extention)