VB.net Tutorials
What's New in VB .NET? A comparison of VB vs VB.net

- 2008-11-25
- Comments
- Steven Holzner
- 563
Rather than asking what's new, it would almost be easier to ask what's not new in VB .NET. The changes are extensive. We can't cover all the changes from Visual Basic 6.0 in a single article, but it's worth taking a look at them in overview here, in one place, so you get an idea of how things are different.
Read More
What is .NET Framework and the Common Language Runtime?

- 2008-11-25
- Comments
- Steven Holzner
- 563
VB .NET is only one component of a revolution in Windows-the .NET framework. This framework provides the new support for software development and operating system support in Windows, and it's more extensive than anything we've seen in Windows before. The .NET framework wraps the operating system with its own code, and your VB .NET programs actually deal with .NET code instead of dealing with the operating system itself. And it is specially designed to make working with the Internet easy.
Read More
Visual Basic Statements

- 2008-11-25
- Comments
- Steven Holzner
- 563
VB Statements are execution statements that perform actions. Besides having single statements in your code, statements can also be grouped into blocks, as we'll see when we discuss conditions like the If statement, which might look like this, where I'm testing the value in the variable BankBalance to see if it's less than 0
Read More
Data types in VB.net

- 2008-11-25
- Comments
- Steven Holzner
- 563
It's time to create a new variable—but what type should you use? For that matter, exactly what kinds of variable types are there and what do they do? Even if you remember what types there are, you probably won't remember the range of possible values a particular variable type allows.
Read More
Arrays and Dynamic Arrays in VB.net

- 2008-11-25
- Comments
- Steven Holzner
- 563
It's time to start coding that database program. But wait a moment-how are you going to handle the data? It's just a simple program, so you don't want to start tangling with the full database techniques. An array would be perfect; how do you set one up?
Read More
Handling Strings in VB.net

- 2008-11-25
- Comments
- Steven Holzner
- 563
You've decided to lead the way into the future by letting your users type in sentences as commands to your program. Unfortunately, this means that you have to parse (i.e., break down to individual words) what they type. So what was that string function that lets you break a string into smaller strings again? We'll get an overview of string handling in this topic. Strings are supported by the .NET String class in Visual Basic. You declare a string this way:
Read More
Operators in VB.net

- 2008-11-25
- Comments
- Steven Holzner
- 563
Visual Basic comes with plenty of built-in operators, which let you manipulate your data. For example, here I'm adding the values in intVariable1 and intVariable2 with the addition operator, +, and storing the result in intVariable3 with the assignment operator, =:
Read More
If…Else Statements in VB.net

- 2008-11-25
- Comments
- Steven Holzner
- 564
How can you make choices in your code, deciding what to do next depending on the values in your variables? You can use the If statement, which is the bread-and-butter of Visual Basic conditionals, and which lets you evaluate your data and execute appropriate code. Here's how this statement works:
Read More
Do Loop in VB.net

- 2008-11-25
- Comments
- Ramlak
- 563
The Do loop keeps executing its enclosed statements while or until (depending on which keyword you use, While or Until) condition is true. You can also terminate a Do loop at any time with an Exit Do statement. The Do loop has two versions; you can either evaluate a condition at the beginning:
Read More
For Loop in VB.net

- 2008-11-25
- Comments
- Ramlak
- 563
The For loop is probably the most popular of all Visual Basic loops. The Do loop doesn't need aloop index, but the For loop does; a loop index counts the number of loop iterations as the loop executes. Here's the syntax for the For loop—note that you can terminate a For loop at any time with Exit For:
Read More
For Each…Next Loop in VB.net

- 2008-11-25
- Comments
- Ramlak
- 563
You use the For Each…Next loop to loop over elements in an array or a Visual Basic collection. This loop is great, because it automatically loops over all the elements in the array or collection—you don't have to worry about getting the loop indices just right to make sure you get all elements, as you do with a For loop. Here's the syntax of this loop:
Read More
While Loop in VB.net

- 2008-11-25
- Comments
- Ramlak
- 563
While loops keep looping while the condition they test remains true, so you use a While loop if you have a condition that will become false when you want to stop looping. Here's the While loop's syntax (note that you used to end this loop with Wend in VB6 and before—that's changed to End While now):
Read More
Sub Procedures and Functions in VB.net

- 2008-11-25
- Comments
- Steven Holzner
- 563
Procedures are made up of series of Visual Basic statements that, when called, are executed. After the call is finished, control returns to the statement that called the procedure. In this way, procedures make it simple for you to package your code into discrete units. Ideally, each Visual Basic procedure should handle one—and only one—task, to make this easy to remember. You can pass data to procedures and the code in the procedure can work on that data. As mentioned above, there are two types of procedures in Visual Basic .NET: Sub procedures and functions. Sub procedures do not return a value, while functions do.
Read More
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
Related Tutorials
Using Resume Next and Resume Line in VB.net
Using On Error GoTo 0 in VB.net
Getting an Exception's Number and Description in VB.net
Raising an Exception Intentionally in VB.net
Exception Filtering in the Catch Block in VB.net
Using Multiple Catch Statements in VB.net
Throwing an Exception in VB.net
Throwing a Custom Exception in VB.net
Changes in Controls from VB6 to VB.net
Unstructured Exception Handling in VB.net
Archived Comments
1. i want to how to run a package and compile also
View Tutorial By: sandhya at 2015-06-25 09:04:03
2. hi sir can you help me with this problem
View Tutorial By: Lee at 2015-10-01 09:08:26
3. How to use Shift operators with practicals in java
View Tutorial By: RosyKrish at 2013-01-17 02:42:37
4. i searched a lot of sites but found the answer her
View Tutorial By: ALIEN ATTACK at 2012-01-09 09:39:36
5. hi all !
This is the error im getti
View Tutorial By: vjy at 2008-05-26 04:30:59
6. Thank you. I found this very helpful.
View Tutorial By: tavella at 2014-09-26 01:04:13
7. Thank you so much Eric Giguere.
You save me
View Tutorial By: ijAcK D at 2009-10-18 05:02:48
8. pls give me example of stack class with postfix me
View Tutorial By: uchiha at 2011-09-16 04:02:57
9. super......... thanks 4 ur great example...
View Tutorial By: jithinraj at 2013-03-13 08:34:07
10. hello all,
i have this error.
Except
View Tutorial By: daniel at 2012-08-12 18:50:04