VB.NET programming tutorial

What is Visual Basic or VB.NET programming language ?

VB.NET is one of the most popular programming languages in the world. It is simple and provides excellent features that programmers need such as object-oriented programming, string manipulation, graphics, graphical user interface (GUI), multimedia, multithreading, data structures, file processing, database access, and client-server networking.

In this tutorial of VB.NET programming, you will start with the basic knowledge required to get up and running with VB.NET. Then you will learn some basic and advanced concepts of VB.NET programming language(along with workable examples and samples projects) including VB.NET variables and data types, operators and expressions, conditional statements or decision making, loops or repetitions, array, procedure and functions, exception handling, string manipulation methods, Object-Oriented programming concept, file stream, database connectivity and manipulation, GUI programming, and other useful sample projects source code about algorithm and data structure.

What will you need?

To develop programs with VB.NET, you need to install Visual Studio.NET 2008 or newer. You might need two or more disks that contain VS.NET 2008 inside.


zed comment


i need to write a vb.net program that will accpet an integer from the user as input and then determine how many digits in that integer are four's.arithmetic operators and loops should be used.


Dara comment


The following code might help you:
Public Sub loadData(ByVal lsv As ListView)
Dim connection As OleDbConnection
Dim command As OleDbCommand
Dim data_reader As OleDbDataReader
connection = New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0; Data Source=d:/databasedic.accdb")
command = New OleDbCommand("SELECT * FROM YourTableName", connection)
data_reader = command.ExecuteReader
lsv.Columns.Add("ID", 100, HorizontalAlignment.Left)
lsv.Columns.Add("Name", 100, HorizontalAlignment.Left)
lsv.View = View.Details
If data_reader.HasRows Then
While data_reader.Read
Dim tbl_item As New ListViewItem()
tbl_item.Text = data_reader.GetValue(0)

End While
End If
End Sub

Ken Sam comment

 Ken Sam

Hi! can you give me VB.NET code to connect to ms. access database and show data in a ListView? I have a table in ms.access 2007. It has two fields: ID, and Name. Thanks...


This website intents to provide free and high quality tutorials, examples, exercises and solutions, questions and answers of programming and scripting languages:
C, C++, C#, Java, VB.NET, Python, VBA,PHP & Mysql, SQL, JSP, ASP.NET,HTML, CSS, JQuery, JavaScript and other applications such as MS Excel, MS Access, and MS Word. However, we don't guarantee all things of the web are accurate. If you find any error, please report it then we will take actions to correct it as soon as possible.