1. Introduction to VB.NET Programming
1. Introduction to VB.NET Programming
VB.NET
By
Hudson Nandere Lubinga
0753 625 255
nanderehudson@gmail.com
Bugema University
School of science and Technology
Department of Computing and Informatics
INTRODUCTION TO VB.NET
PROGRAMMING
• Overview of the .NET Framework
• Installing and setting up Visual Studio
• Creating a VB.NET Windows Forms application
• Working with the Form Designer
• Adding controls to a Form
Learning Outcomes
By the end of this session, students will be able to:
• Describe the .NET Framework and its role in software development.
• Install and set up Visual Studio for developing VB.NET Windows Forms
applications.
• Create a new VB.NET Windows Forms application in Visual Studio.
• Use the Form Designer to customize the user interface of a Windows
Forms application.
• Add and configure common controls to a form, such as buttons and
text boxes.
Introduction to VB.NET
Programming
• Visual Basic .NET (VB.NET) is a modern, object-oriented programming
language that allows developers to create Windows Forms
applications quickly and easily.
• Visual Basic .NET is developed by Microsoft and implemented on
the .NET Framework
• This course will introduce you to the fundamentals of VB.NET
programming and teach you how to develop basic Windows Forms
applications.
1. Overview of the .NET
Framework
• The .NET Framework is a software development framework that
provides a consistent programming model for building applications.
• The framework includes a large library of pre-built code, called
the .NET Framework Class Library, that developers can use to create
their applications.
• The .NET Framework supports multiple programming languages,
including VB.NET, C#, and F#.
2. Installing and Setting up
Visual Studio
• Visual Studio is a powerful and feature-rich integrated development
environment (IDE) for building Windows Forms applications.
• To install Visual Studio, visit the Microsoft website and download the
appropriate version for your operating system.
• During the installation process, you can choose which components of
Visual Studio to install, such as the .NET Framework, the Visual Basic
language, and the Windows Forms designer.
3. Creating a VB.NET Windows
Forms Application
• A Windows Forms application is a graphical user interface (GUI)
application that runs on the Microsoft Windows operating system.
• To create a new VB.NET Windows Forms application in Visual Studio,
follow these steps:
• Open Visual Studio.
• Click on "File" -> "New" -> "Project".
• Select "Windows Forms App (.NET Framework)" and give your project a name.
• Click on "Create".
• This will create a new project with a default form that you can
customize using the Form Designer.
4. Working with the Form
Designer
• The Form Designer is a visual editor in Visual Studio that allows you to
create and modify the user interface of your Windows Forms
application.
• To open the Form Designer, double-click on the form file in the
Solution Explorer.
• The Form Designer displays a design surface where you can add
controls, set their properties, and arrange them on the form.
• Common controls in VB.NET include buttons, text boxes, labels,
combo boxes, and list boxes.
5. Adding Controls to a Form
• To add a control to a form, follow these steps:
• Open the Form Designer.
• Locate the Toolbox window, which contains a list of available
controls.
• Click on the control you want to add, such as a button or text box.
• Click and drag the control onto the form.
• Adjust the control's properties, such as its size, position, and text.
Make Research:
1. Why VB.NET is widely used as a professional language?
2. List at least 12 components of the .NET framework. Briefly Explain the
jobs performed by each of these components.
3. How is a VB Application Compiled and Run? Explain with aid of
diagrams.
4. Explain the Project and Solution Concepts in VB.NET.
5. Why is VB.NET said to be an event-driven programming language
6. Make research on the History of VB.NET. How are Bill Gates and Paul
Allen related to VB.NET?
7. Install Visual Studio 2012/2013/2015 and configure it for use.
Conclusion
• In this session, we have covered the fundamentals of VB.NET
programming, including an overview of the .NET Framework,
installing and setting up Visual Studio, creating a Windows Forms
application, working with the Form Designer, and adding controls to a
form.
• These are foundational skills that will enable you to build basic
Windows Forms applications in VB.NET. In the next session, we will
delve deeper into VB.NET programming concepts such as data types,
control structures, loops, functions, and classes.
Checkpoint
• When you start a new Visual Basic project, what object is
automatically created and displayed in the Designer?
• How can you tell that an object is selected and ready for
editing in the Designer?
• What is the purpose of an object’s sizing handles?
• What must each form and control in an application’s GUI
have to identify it?
• What is the purpose of the Properties window?
• What does the Alphabetical button do when selected in the
Properties window?
• What does the Categorized button do when selected in the
Properties window?
• What does a form’s Text property determine?
• What does a form’s Size property determine?
• What is shown in the Toolbox?
• How do you add a control to a form?
• What should the text displayed on a button indicate?
Quiz:
1. What is the .NET Framework?
A. A programming language
B. An integrated development environment
C. A software development framework
D. A library of pre-built code