467,873 Members | 1,781 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,873 developers. It's quick & easy.

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

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.

G
Nov 25 '06 #1
  • viewed: 1577
Share:
2 Replies
debasisdas
Expert 4TB
Question moved to Visual Basic forum.
Nov 3 '07 #2
QVeen72
Expert 1GB
Hi,

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..


Regards
Veena
Nov 3 '07 #3

Post your reply

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

Similar topics

4 posts views Thread by JIM.H. | last post: by
2 posts views Thread by John Smith | last post: by
7 posts views Thread by Doug Bell | last post: by
6 posts views Thread by rn5a | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.