By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,642 Members | 2,136 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,642 IT Pros & Developers. It's quick & easy.

How to solve the Alignment problem ? .txt files in VB textbox?

P: 1
Hi everyone,

I try to a display a .txt file in window's textbox or rich textbox. The
text file has contents line by line aligned perfectly when using NotePad to
view and print it. But when I display this .txt file in textbox for printing all alignments are changed. Please help me to solve this problem.

Thanks in advance.

Nov 25 '06 #1
Share this Question
Share on Google+
2 Replies

Expert 5K+
P: 8,127
Question moved to Visual Basic forum.
Nov 3 '07 #2

Expert 100+
P: 1,445

Make the TextBox/RichTextBox 's Font = "Courier New".
this is an Equi-Distance font (eg, i and w occupy same width on the display screen)..
It makes look, text formatted..

Nov 3 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.