Home >>VB.Net Programs >VB.Net program to demonstrate the use of the 'vbTab' constant

VB.Net program to demonstrate the use of the 'vbTab' constant

What is the use of the 'vbTab' constant in VB.Net

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

	
Output:
User_Name : Akshit
User_Age : 22
User_Class : 12
Press any key to continue . . .

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.


No Sidebar ads