Click here to Skip to main content
15,794,633 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
how to space=20 between words from text file to open in text box

1 solution

Your question isn't very clear. Are you trying to add spaces between words?If so, then you can use .PadLeft(20, " ") or .PadRight(20, " ") when concating a word, if there is supposed to be a total of 20 characters. If you want the word and then 20 characters, you could just concat the word and then concat " " which is twenty spaces.

Here[^] is the MSDN info on PadLeft if you want to research it more.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900