Home >>VB.Net Programs >VB.Net program to demonstrate the use of the 'vbTab' constant
Here we use the "vbTab" constant on the console screen to print tab space.
Program
Below is the source code to demonstrate the use of the 'vbTab' constant. The program given is compiled and successfully executed.
Example
Module Module1
Sub Main()
Console.WriteLine("User_Name :" & vbTab & "Mayuri")
Console.WriteLine("User_Age :" & vbTab & "17")
Console.WriteLine("User_Class :" & vbTab & "12")
End Sub
End Module
Explanation:
We generated a Module1 module in the above program that contains the function Main (). We printed the student details in the Main() function, where we used the "vbTab" constant to print tab space on the console screen.