Home »
VB.Net »
VB.Net Programs
VB.Net program to demonstrate the use of the 'vbTab' constant
By Nidhi Last Updated : November 14, 2024
VB.Net - vbTab Constant
Here, we will print tab space using the "vbTab" constant on the console screen.
VB.Net code to demonstrate the use of the 'vbTab' constant
The source code to demonstrate the use of the "vbTab" constant is given below. The given program is compiled and executed successfully.
'VB.Net program to demonstrate the use of "vbTab".
Module Module1
Sub Main()
Console.WriteLine("Name :" & vbTab & "Alex")
Console.WriteLine("Age :" & vbTab & "18")
Console.WriteLine("Class :" & vbTab & "12")
End Sub
End Module
Output:
Name : Alex
Age : 18
Class : 12
Press any key to continue . . .
Explanation:
In the above program, we created a module Module1 that contains a function Main(). In the Main(), function we printed the student detail, here we used the "vbTab" constant to print tab space on the console screen.
VB.Net Basic Programs »