The Visual Basic Integrated Development Environment (Developing Desktop Applications)
The Visual Basic Integrated Development Environment (Developing Desktop Applications)
NET 1
Chapter I
The Visual Basic Integrated Development Environment
(Developing Desktop Applications)
1.0 Visual Basic .NET
Visual Basic .NET is the next generation of Visual Basic, but it is also a significant
departure from previous generations.
Experienced Visual Basic 6 developers will feel comfortable with Visual Basic .NET
code and will recognize most of its constructs.
However, Microsoft has made some changes to make Visual Basic .NET a better
language and an equal player in the .NET world.
.NET
ASP.NET
Updated ASP Engine
Web Forms Engine
Framework Classes
System.Math, System.lo, System.Data,Etc.
For example, if you want to take a square root, instead of using the VB operator, you use a
method in the System.Math class. This approach makes the language much more lightweight
and scalable.
2. Select Visual Basic Projects in the Project Types pane on the left side of the dialog box.
3. Select Windows Application in the Templates pane on the right side of the dialog box.
4. Enter a name in the Name text box.
5. Click OK button.
Fig: Windows Form Designer
Solution
Explorer
Toolbox
Properties
Form Windows
Design
Examples:
1.1 Date and Time Program
Create the following form with two buttons and four textbox controls.
Depo = Val(txtDeposit.Text)
IR = Val(txtInterest.Text) / 100
YR = Val(txtYear.Text)
Total = Depo * (1 + YR * IR)
txtTotal.Text = Format(Total, "fixed")
End Sub
Create the form shown with a label, 2 buttons and a timer. Write the following code.
Choose Items and click browse button in the properties. Type the strings or items in the
String Collection Editor.
txtUniv.Text = cboUniv.Text
End Sub
Note:
To set as Startup Project;
Project Menu ComboProgram Properties Choose Form Name to set as Startup in the
Startup object combo box.
Click Apply button and OK button.