Artz

Tab Vb.Net (NA)

2 posts in this topic

Hi

Anyone knows the correct call to add a "tab" character into a dynamic String in Resources or in VB.Net Code?

My tries always with a compiling error :

myString = "I need to know how to add an" & vbTab & "tab"

myString = "I need to know how to add an" & Convert.ToChar(Keys.Tab) & "tab"

myString = "I need to know how to add an" & ControlChars.Tab & "tab"

myString = "I need to know how to add an" & Chr(9) & "tab"

myString = "I need to know how to add an" & ChrW(9) & "tab"

 

The reason for this is to fill a ListBox dynamically on a subroutine and get elements strings vertically visually right.

Share this post


Link to post
Share on other sites

I know this is old post but in case someone is wondering the same thing:

Microsoft.VisualBasic.Strings.Chr(9) is the call for tab in NA-scripts.

for example:

myString = "I need to know how to add an" & Microsoft.VisualBasic.Strings.Chr(9) & "tab" 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now