17-03-2014, 09:59 AM
Visual Basic .NET Tutorial
Visual Basic.pdf (Size: 1.1 MB / Downloads: 15)
INTRODUCTION
Visual Basic is a programming language that is designed especially for windows
programming. This tutorial will step through and demonstrate some of the features of
Visual Basic. It will explain most of the tools available for implementing GUI based
programs. After introducing the basic facilities and tools provided by Visual Basic, we
apply our knowledge to implementing a small VB program. Our program will implement
a visual interface for a commonly know “stack” abstract data type.
PROGRAMMING TOOLS
First, we must look at the different tools that we have to work with. When you are
creating a program you must interact with four main windows. They are the Tool bar,
Tool box, Project box, and the Properties window.
TOOL BAR
The tool bar is the bar is at the very top of the editing window. It consists of the
dropdown menus: File, Edit, View, Project, Build, Debug, Data, Tools, Window, and
Help. Below those options are the “quick buttons”. These buttons, reading from left to
right are: New Project, New Form, Open File, Save File, Save All, Cut, Copy, Paste,
Undo, Redo, Navigate Backward, Navigate Forward, Solution Configurations, Find,
Solution Explorer, Properties, Toolbox, and Class View.
PROPERTIES WINDOW
The Properties window contains the list of design-time properties for a selected form,
control, class, module, or menu. These properties can be changed at design time, and the
Properties window shows each property's current setting. When you select multiple
controls, the Properties window contains a list of the properties common to all the
selected controls.
ADDING THE CODE TO THE FORMS
Now that we have all the forms prepared, we need to add the underlying code. We will
first start with the About form and the Definition forms. To add code double click on the
object you would like to add code to. In this case we need to add code to the Exit
Buttons. So, go to the About form and double click on the Exit button. When you do this
a programming window should appear with a function all set up and ready to insert code