Friday, January 2, 2009

How to Use Tabs in Variables in C#

C# use of Tab characters in variables

Tab characters can be used in variables in the form of escape sequences (\t for the tab character) as shown below

Console.WriteLine("Name\tAge");

The output will be:




1 comment:

  1. Except \t doesn't work with in Label controls.

    ReplyDelete