Friday, December 14, 2007

"Is there a constant for tab like Environment.Newline?"

..was a question a co-worker asked the other day. My first answer was no, as it is not really needed as a tab does not change between platforms as newline might (think Mono).

Then I realized, there actually *is* one, so I gave the following instructions:

  • Add a reference to Microsoft.VisualBasic.dll
  • add a using Microsoft.VisualBasic; statement
  • use Constants.vbTab

(And to avoid any misunderstandings, no, this was not a serious suggestion.)

1 comment:

Anonymous said...

Great reply! :)

Although, Google has given me an even better suggestion to my search for ".net constant for tab":

"I Am A Man Of Constant Sorrow tab"