RM 16 - Introduction To Visual Studio 2010
RM 16 - Introduction To Visual Studio 2010
Computer
I. Introduction
“Visual refers to the method used to create what the user sees - the graphical user
interface, or GUI. “Basic refers to the BASIC (Beginners All-Purpose Symbolic Instruction
Code) high level programming language whose design philosophy emphasizes ease of use.
II. Objectives
At the end of the lesson, you should be able to;
1. discuss how start a new project in Visual Basic 2010;
2. identify the menus, tabs and controls in Visual Basic 2010; and
3. demonstrate how to use controls and change properties in Visual Basic 2010.
III. Pretest
Answer the following questions;
1. What is Visual Basic 2010?
2. How do you start a new project in VB 2010?
3. How do we use controls and change properties in VB2010?
Visual Basic 2010 is not a stand alone product. It is still a major component of
Visual Studio which can be purchased economically.
1. Project Management (left) - offers a quick way to start with list of recently opened
projects.
● New Project/ Open Project Section - let’s you create a new VB project.
● Recent Projects section - shows a list of projects that have been created by you
recently.
2. Information (right) - contains resources to help to work on VB, such as links to Microsoft
website, walkthroughs to help you learn new features.
● Getting Started Pane - provides some helpful tips to quickly develop your applications.
● Latest News section- provides latest news ( new release and updates).
● Properties section - let’s you define the properties in each control.
The IDE Main Window holds the visual basic menu bar and the toolbar. Each window can
be moved, resized, opened, closed, modified and customized.
The menu bar on the top section provides access to the most of the commands that
could control the development environment. Menus and commands works a s they do in all
window-based programs.
2. The Toolbars
Contains the frequently accessed functionality that is a subset of what is available in the
main menu. The toolbars are context sensitive, showing and hiding personalities depending
on what is being done.
The largest window in the center of the screen is the Document window. The tab across
the top of the window, allows you to switch between open documents. The items that display
in the Document window include the Form Designer and the code editor.
Form Designer:
The Solution Explorer Window displays the list of files, folders and resources
included in a project and the list of the classes it references.
5. Properties window
The Properties Window contains an object list that itemizes all the user interface
elements on the form. It displays different fields depending on the item selected in the
Solution Explorer.
The toolbox is docked on the vertical tab hidden on the far left side of the VB window.
The toolbox contains the controls.
These controls are categorized into Common Controls, Containers, Menus, Toolbars,
Data, Components, Printings and Dialog. The most frequently used Common controls are
Button, Label, ComboBox, ListBox, Picture Box and TextBox.
Adding Controls
Controls are objects that perform actions within the project. To Add controls, drag and drop
the control on the form. You can also double click the control.
Common Controls:
1. Buttons - used to get the most basic input from a user. When a user clicks the
button, he or she is requesting that the program perform a specific action at once.
Example: OK button, Cancel button, Quit button
2. Textboxes - used to display text on a form or to get user input while a program is
running.
3. Labels - user interface element used to describe text, numbers or symbols when a
program runs.
1. Click the label, textbox, button or the form that you want to set the property.
2. Then go to the property box and change the properties of the controls.
V. References:
VI. Post-Test