How to Add a Tab Into a String on VB.NET
- 1). Click the "Start" button in Windows and select "Microsoft Visual Basic" from the "All Programs" menu.
- 2). Click "File" and "Open," and open the VB.NET program in which you want to add a tab into a string.
- 3). Add the following code after the "public STRING" line in your VB.NET program:
TextBox.Text = "State" + CHR(9) + "Capitol"
This separates the "State" and "Capitol" variables with the "Tab" control character. - 4). Click "File," "Save" to save the VB.NET program.
Source...