tab command
-
hello if newline (\n) coding is vbclrf then a tab between word (\t) coding is....... can i know the answer please thank you in advance Gary
For the tab and newline characters, in VB.NET you can use the
ControlChar
constant:ControlChar.NewLine ' Generates a newline.
ControlChar.Tab ' Generates a tab.Hope this helps. Best of luck in your programming efforts! :-D Happy Programming and God Bless! "Your coding practices might be buggy, but your code is always right." Internet::WWW::CodeProject::bneacetp
-
For the tab and newline characters, in VB.NET you can use the
ControlChar
constant:ControlChar.NewLine ' Generates a newline.
ControlChar.Tab ' Generates a tab.Hope this helps. Best of luck in your programming efforts! :-D Happy Programming and God Bless! "Your coding practices might be buggy, but your code is always right." Internet::WWW::CodeProject::bneacetp
-
hello how to use this controlchar.newline & controlchar.tab? a small example i wish to print the example like below Name Age Gary 18 i wish to print or show this sample of result in textbox may i know how it could be done? thank you Gary
The TextBox's are not real good at tabs. Your best bet is to change the font of the TextBox you want to show this data in to a fixed width font, like Lucida Console or New Time Roman. This will make every character the exact same width, including tabs and spaces. Then, when you go to output the data:
Dim outText As String outText = "Name" & ControlChars.Tab & "Age" & ControlChars.NewLine outText = outText & "Gary" & ControlChars.Tab & "18" & ControlChars.NewLine TextBox1.Text = outText
This, of course, assumes that you have a TextBox on your form called TextBox1 and that it is setup as a MultiLine textbox. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome