Visual Basic [VB] Programming Tutorials

Visual Basic or VB Programming Tutorials And Articles
  Title / Author Replies
Views
There are two types of procedures: Sub procedures and functions. In Visual Basic, Sub procedures do not return values when they terminate, but functions do.If you declare variables in your new procedures, those variables might not be accessible from outside the procedure, and that fact is new...
0
17,238
An object is a combination of code and data that can be treated as a unit. An object can be a piece of an application, like a control or a form. An entire application can also be an object. Objects are things that you can program with, things that make programming easier. They contain a set of...
0
13,620
Uniform Resource Identifiers (URIs) may represent Web requests, FTP requests, files, news, and e-mail. Whenever you need to work with URIs and determine a particular portion of a given URI, you can utilize the System.URI class available in Visual Studio .NET. This class allows you to represent and...
0
6,050
Developers are often required to make a specific action take place on a form on a regular basis or after a set time interval. One way you can achieve this functionality is by using VB.NET's Timer control. Example One of the best ways to understand how the Timer control works is with an...
0
12,440
Working with strings is a very important functionality in most applications. Your ability to effectively use the existing .NET functionality is vital for building solid applications. String.Compare method VB.NET's String.Compare method is handy when you need to compare two string...
0
28,187
By definition, an array is a list of variables, all with the same data type and name. When we work with a single item, we only need to use one variable. However, if we have a list of items which are of similar type to deal with, we need to declare an array of variables instead of using a variable...
0
38,373
When you decide to use a variable, you are in fact asking the computer to use a certain amount of space to hold that variable. Since different variables will be used for different purposes, you should specify the kind of variable you intend to use, then the computer will figure out how much space...
0
36,014
Developers often deal with various date calculations in applications. If you need a simple way to figure out how many days there are between two given dates, consider using VB.NET's TimeSpan object. Snippet A shows how you can use the TimeSpan object to obtain the elapsed amount of time...
0
97,038
Whenever need to know the number of words in a larger VB.NET string consider using the Split function. In this example of how to use Split, as well as Replace if you have more than one space between words. Working with strings and performing various string operations is important to any Visual...
0
14,555
-
-
Windows stores some important information (e.g., computer name and user name) in the environment variables. The ability to access these variables to retrieve their values comes in handy in many applications. In this tip, I look at how you can use VB.NET to retrieve the information from the...
0
16,586
Here's a cool, handy macro that will auto-generate a Table of Contents for any Excel file. Steps remains the same as in any macro (Alt F11 to start VBA, Insert module, paste the code, save, File -> Return to Excel, then Alt F8, and Run). That's a mouthful, but you know what to do. Sub...
0
14,137
Often in your code procedures, you may need to determine what typeof control your code has accessed. For instance, you may want to alter the text on every command button on a form. Or you may want to change the properties for several different controls. In such instances, you have several ways to...
0
12,806
Visual Basic 6 provides a function called Environ through which you can get all the environment variables available. It takes string parameter which is name of the Environment variable and returns its value. The Valid Environment strings are ALLUSERSPROFILE APPDATA CI_HOLOS_CLI...
1
86,027