Hi, and Happy Holidays to all. I was wondering if anyone had a solution to aligning text in textbox as columns. I have tried a couple of solutions I found in the forum. It seems the problem I have is the fact characters have different width. ( ooo is phsically wider than iii ) I have tried the richTextbox dll indenting but it seems to indent all elements that is if you set left indent to 0 for the first element then set left indent to 20 for the second element it indents both elements to 20. One solution I looked at saved the data to a formatted file and it looked perfect but when I applied this to display in a textbox.....same problem. I have a simple example of my problem.
Thanks...
Tremara1 Australia
My reply doesn't help the OP much.
But perhaps he was confused about calling subs as well.
Using the same fixed value in both calls to makespace(30) in the example
program provided does align the words correctly. But doesn't touch
the font pitch.
Is there a way to show text, in a fixed pitch, in a textbox ?
Was probably a better question.
The reason I used a call to a sub was I want to use this to populate a textbox with formatted data from database fields of varying lengths of data.( ie firstname secondname). The length of the data will be highly variable. I think your right it is the pitch I need to control...any clues?