Windows Develop Bookmark and Share   
 index > Windows Forms General > Creating Tabs to specific points in a Tab-delimited file
 

Creating Tabs to specific points in a Tab-delimited file

Way back in my VB6 days (I know, I know), I could create a tab-delimited file that used tabs to specific characters, like this:

Print #i, sNow; Tab(25); sVer; Tab(35); sType; Tab(45); sUser; Tab(60); sFlag; Tab(65); CStr(gUserID); Tab(72); sMsg

This would cause things to appear at specific tab points, irregarless of the size of the text I was writing. I can see in .NET how I can use the ControlChars.Tab to create tabs in a line, like this:

Now.ToString & ControlChars.Tab & My.Application.Info.Version.Major.ToString & "." & My.Application.Info.Version.Minor.ToString & ControlChars.Tab & sType

However, these are just like hitting the "tab" key on the keyboard - they don't go to a specific character spacing. Therefore, my text does not line up as well as I would like.

Is there a similar method in .NET to do this same tab spacing?

Thanks in advance!

Loki70  Monday, July 17, 2006 10:10 PM
It is still available...
nobugz  Tuesday, July 18, 2006 2:48 AM
It is still available...
nobugz  Tuesday, July 18, 2006 2:48 AM

You can use google to search for other answers

Custom Search

More Threads

• Can't get images on toolbar buttons when running
• Setting Icon to MenuStrip
• How to use ErrorProvider while using validations in Gridview
• Manual showing tooltip ?
• Treeview TreeNode & HotTracking
• DataGridView - dragging multiple items with left mouse button
• Word Document in Web Browser control
• messenger notification
• Activex .ocx to .NET
• Using MmcListView's actions with a FormView