0% found this document useful (0 votes)
45 views

01 Week Tutorial

This document provides an overview of how to get started with Visual Basic (VB) by introducing the VB integrated development environment and how to perform basic tasks like creating a new project and form, adding controls to a form, writing code, and debugging. It covers starting VB, opening a new or existing project, placing controls on a form and setting their properties, writing event procedures, and running and debugging a project. The last section provides an exercise for students to create a simple form to manipulate strings.

Uploaded by

Zack Quinn
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
45 views

01 Week Tutorial

This document provides an overview of how to get started with Visual Basic (VB) by introducing the VB integrated development environment and how to perform basic tasks like creating a new project and form, adding controls to a form, writing code, and debugging. It covers starting VB, opening a new or existing project, placing controls on a form and setting their properties, writing event procedures, and running and debugging a project. The last section provides an exercise for students to create a simple form to manipulate strings.

Uploaded by

Zack Quinn
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 24

Week 01: Getting Started

TUTORIAL 1: GETTING STARTED


1.

How to Start VB

2.

How to Open VB

3.

How to Create a form

4.

How to Write code

5.

How to Debug and Build

IS5311: Business Software Construction

Week 01: Getting Started

1. HOW TO START
1) CHOOSE THE WORK DESK

IS5311: Business Software Construction

Week 01: Getting Started

1. HOW TO START
2) SELECT MICROSOFT VISUAL STUDIO PROFESSIONAL 2012 MENU

IS5311: Business Software Construction

Week 01: Getting Started

1. HOW TO START
3) SELECT MICROSOFT VISUAL STUDIO 2012 VISUAL STUDIO 2012

IS5311: Business Software Construction

Week 01: Getting Started

2. HOW TO OPEN OR CREATE


1) When you launch VB2012, the Integrated Development Environment is
shown in the diagram below.

IS5311: Business Software Construction

Week 01: Getting Started

2. HOW TO OPEN OR CREATE


2) THE NEW PROJECT PAGE COMPRISES THREE TEMPLATES, VISUAL BASIC,
VISUAL C# AND VISUAL C++.

IS5311: Business Software Construction

Week 01: Getting Started

3. HOW TO CREATE A FORM


When you open the Visual Studio IDE, you generally see an empty environment
with a Start Page. The default startup object is Form1

IS5311: Business Software Construction

Week 01: Getting Started

3. HOW TO CREATE A FORM: VISUAL BASIC MAIN SCREEN


The properties window shows the properties of Form1

IS5311: Business Software Construction

Week 01: Getting Started

3. HOW TO CREATE A FORM: VISUAL BASIC MAIN SCREEN


SETTING A FORMS PROPERTIES: NAME, SIZE, COLOR, FONT, ETC.

Setting a forms
properties
- name, size,
color, etc.

IS5311: Business Software Construction

Week 01: Getting Started

3. HOW TO CREATE A FORM: 4 WAYS TO PLACE A WINDOW CONTROL

4 Ways to Place a Window Control from the Toolbox onto the Form
1)

Double-click

2)

Drag and Drop

3)

Click, Point, and Click

4)

Click, Point, and Drag

Resize

IS5311: Business Software Construction

10

Week 01: Getting Started

3. HOW TO CREATE A FORM: PLACE A CONTROL

You can scroll to view more


controls. To sort the tools in the
toolbox:
Right-click the toolbox and

select.
Sort Items Alphabetically from
the context menu (shortcut
menu).

IS5311: Business Software Construction

11

Week 01: Getting Started

3. HOW TO CREATE A FORM: PLACE A CONTROL


1) CREATE A CONTROL FROM TOOL BOX CHOOSING A BUTTON CONTROL

IS5311: Business Software Construction

12

Week 01: Getting Started

3. HOW TO CREATE A FORM: PLACE A CONTROL


1) CREATE A CONTROL FROM TOOL BOX SETTING PROPERTIES
Selected Control

Properties

IS5311: Business Software Construction

Settings

13

Week 01: Getting Started

3. HOW TO CREATE A FORM: PLACE A CONTROL


2) CREATE A CONTROL FROM TOOL BOX CHOOSING A TEXTBOX

IS5311: Business Software Construction

14

Week 01: Getting Started

3. HOW TO CREATE A FORM: PLACE A CONTROL


2) TEXT BOX CONTROL SETTING PROPERTIES

Used for input and output


When used for output, ReadOnly property is set to True

Textbox tasks
-Multiline

sizing handles

IS5311: Business Software Construction

15

Week 01: Getting Started

3. HOW TO CREATE A FORM: PLACE A CONTROL


2) TEXT BOX CONTROL SETTING PROPERTIES
selected
control

properties

settings

Description pane
IS5311: Business Software Construction

16

Week 01: Getting Started

Window (Form) Name

Background color

Font/Size/Bold/

Font color

IS5311: Business Software Construction

17

Week 01: Getting Started

4. HOW TO WRITE CODE : CODE EDITOR


Each control has its own events- clicking
- You can control an event by writing event procedures.

IS5311: Business Software Construction

18

Week 01: Getting Started

5. HOW TO DEBUG AND RUN

IS5311: Business Software Construction

19

Week 01: Getting Started

5. HOW TO DEBUG AND RUN

IS5311: Business Software Construction

20

Week 01: Getting Started

MODE

Design Time used when designing the user interface and


writing code

Run Time used when testing and running a project

Break Time(Debug) if/when receiving a run-time error or

pause error

IS5311: Business Software Construction

21

Week 01: Getting Started

EXERCISE STRING MANIPULATION


Input your name
Input your major
Input your course

To select a control, click on it. Sizing handles appear when a control is selected.

IS5311: Business Software Construction

22

Week 01: Getting Started

EXERCISE STRING MANIPULATION

IS5311: Business Software Construction

23

Week 01: Getting Started

WEEK 01 TUTORIAL

You should archive the whole directory of your window application to a zip file an
d submit it to the blackboard

Title : Week01_your name.zip by 7 Sep 17:00 pm.

IS5311: Business Software Construction

24

You might also like