VB.net Tutorials

111. Operators in VB.net

By: Steven Holzner : 2008-11-25

Description: 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, =:


112. Using Select Case in VB.net

By: Steven Holzner : 2008-11-25

Description: You have to get a value from the user and respond in several different ways, but you're not looking forward to a long and tangled series of If…Then…Else statements. What can you do?


113. Do Loop in VB.net

By: Ramlak : 2008-11-25

Description: 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:


114. For Loop in VB.net

By: Ramlak : 2008-11-25

Description: 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:


115. For Each-Next Loop in VB.net

By: Ramlak : 2008-11-25

Description: 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:


116. While Loop in VB.net

By: Ramlak : 2008-11-25

Description: 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):


117. Handling Dates and Times in VB.net

By: Steven Holzner : 2008-11-25

Description: One of the biggest headaches a programmer can have is working with dates. Handling hours, minutes, and seconds can be as bad as working with shillings, pence, and pounds. Fortunately, Visual Basic has a number of date and time handling functions, which appear in Table below-you can even add or subtract dates using those functions. VB6 programmers will notice a number of new properties in this table.


118. Sub Procedures and Functions in VB.net

By: Steven Holzner : 2008-11-25

Description: 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.


119. "Using If with And" and Comparing two integers using If

By: Issac : 2008-11-08

Description: The If condition statement in VB.net is a handy tool let's take a look at the immense usage it throws


120. Nested If and Single line if statement

By: Issac : 2008-11-08

Description: There are number of ways in the usage of if in VB.net lets look at the most fascinating two methods of them