You are on page 1of 3

Name: Ronna Belle D.

Taruc
Course/Yr.: BSA 4-3
Assignment #1

Date: June 19, 2015

1. Identify the different parts of VB2010 environment.


Title Bar. It shows the title of the project you are currently working on.
Menu Bar. It consists of menus that help you manipulate programs in the project
Tool Bar. Two built-in tool bars are provided when you open the VB.
Windows:

Toolbox Window. The window is very important it contains control template or


components that are available for you to use.
Form Window. The window is a blank window (or form) on which you can place
controls. They are the visual part of the program with which the user can interact.
Solution Explorer. The window contains a Windows Explorer-like tree view of all
customize forms and general code.
Properties Window. The properties window displays the properties for a form or a
control. Properties describe attributes such as size, color, and font of a control.

2. What is identifier? Give at least 5 examples.


An identifier is what is commonly referred to as a name in programming. It can be
the name of a project, module, variable, object, method and so on.
Examples:
Module1
Main
bfound
m_name
NUMBER_PI
3. What is a variable? Give at least 5 examples.
A variable is a name for a value that you use in your program for making
calculations, storing data and so on. A variable can be thought as a memory
location, which memory location is of the type you declared.
Various types of variables are: Boolean Variable, Char Variable, Byte Variable, Date
Variable, Decimal Variable, Double Variable, Integer Variable, Object Variable, Long
Variable, Short Variable, String Variable.
Examples:
letter A = 50
June 18, 2015 = #6/18/2015#
See = See you tomorrow
C = Cut
i = 1.0098
4. What are rules in giving identifer/variable name?

Name: Ronna Belle D. Taruc


Course/Yr.: BSA 4-3
Assignment #1

Date: June 19, 2015

An identifier must start with a letter and can only contain letters, digits and the
underscore character.
A Variable is a Visual Basic identifier, and therefore is subject to the naming rules
for such an identifier: it must start with a letter and can only contain letters, digits
and the underscore character.
An identifier or a variable name may be followed by some special characters,
such as $ or @. These special characters are called 'type characters' and they work
with non-escaped identifiers.
5. Identify the different control in the toolbox.
Tool Name

What This Tool Does

Pointer

Selects objects

Picture box

Draws a box to display graphics

Label

Draws a box to display text

Text box

Draws a box that can display text and let the user type in text

Frame

Groups two or more objects together

Command button

Draws a command button

Check box

Draws a check box

Option (or radio) button

Draws a radio button

Combo box

Draws a combo box

Name: Ronna Belle D. Taruc


Course/Yr.: BSA 4-3
Assignment #1

Date: June 19, 2015

List box

Draws a list box

Horizontal scroll bar

Draws a horizontal scroll bar

Vertical scroll bar

Draws a vertical scroll bar

Timer

Places a timer on a form

Drive list box

Draws a drive list box that displays all the disk drives available

Directory list box

Draws a directory list box that displays a directory on a


particular disk drive

File list box

Draws a file list box that displays files in a specific directory

Shape

Draws a geometric shape such as a circle or a square

Line

Draws a line

Image box

Draws a box to display graphics

Data control

Draws a control to link a program to a database file

OLE

Draws a box to insert an OLE object

You might also like