Upload
arabella-thornton
View
215
Download
0
Tags:
Embed Size (px)
Citation preview
Visual Basic 2008 Express Edition
The IDE
Visual Basic 2008 Express
The Start Page
Recent Projects
Open an existing project
Create a New Project
Visual Basic 2008 Express
The Start Page
Getting Started Web-Based Resources
Web-Based Resources
Visual Basic 2008 Express
The New Project Dialog
In this course, we will always create a Windows Forms
Application
Always give the project a meaningful name.
Visual Basic 2008 ExpressDesign Mode
Toolbox
The Form(Window)
Project Explorer
Properties Window
Creating a Project
Step 1
Click Create Project in the Recent
Projects Window
Creating a Project
Step 2
Select Windows Forms Application in the New Project
dialog box.
Name the project and click OK
Creating a Project
Step 3: Select the
Form
Set the form’s Name property
Creating a Project
Step 3: Select the
Form
Set the form’s Text property
Creating a Project
Step 4 – Drag and
Drop objects
onto the form.
Set the object’s properties,
starting with it’s Name property
Creating a Project
Complete the Graphical User Interface (GUI) by
dropping objects onto the form and then setting
their properties.
Creating a Project
You can toggle between Form and
Code view by clicking these
icons.
Step 5: Add Code.
Double click the button to open the
code window,
showing the button’s
Click event
Creating a Project
Public Class frmHello
Private Sub btnGreet_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGreet.Click
lblGreeting.Text = "Hello World“
End Sub
End Class
The button’s Click event fires when the user clicks
the button.
This Visual Basic code changes the
label’s Text property to the
words Hello World
Creating a Project
Step 6: Test your code.
Click the Play button to run your program.
Creating a Project
Click the button
Note the result
Close the program
Creating a Project
Step 7: Save your Project.
Select Save All from the File menu (or click the Save All button on the toolbar).
Note the location of your project.
VB will Create a folder named the same as your project. You will ZIP this entire folder into
one compressed file and hand in that file.