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.





Comments

Dara comment

 Dara

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")
connection.Open()
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)
tbl_item.SubItems.Add(data_reader.GetValue(1))
lsv.Items.Add(tbl_item)

End While
End If
End Sub

01-30-2014
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...

01-30-2014
Name:
Comment:
Enter the text:
CAPTCHA image

....................................................................................................................Home | Forum | About | Contact
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.
Copyright @ 2011-2013 worldbestlearningcenter. All Rights Reserved.
Home Programming Web DB & App Questions Exercises Tips Programs FAQs Download About
Computer-Wbest
Popular Pages
You might like