Computing.Net > Forums > Programming > Formatting text output? C#

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Formatting text output? C#

Reply to Message Icon

Name: drew22299
Date: June 12, 2007 at 01:09:12 Pacific
OS: Xp Sp2
CPU/Ram: 2, 000 mhz
Product: n/a
Comment:

Hi,

I have a listbox which displays text files when the user clicks a button, the user then selects (highlights) a file in the list box and clicks another button to display the conents of the text file in a textbox.

How can I format the way in which the text is displayed in the textbox? For example, how do I insert a header or separate strings in the text file output?

If you know how to do this please help!




Sponsored Link
Ads by Google

Response Number 1
Name: Chi Happens
Date: June 12, 2007 at 05:09:33 Pacific
Reply:

add the header string first like this:

Text1.Text = HeaderText;
Text1.Text += FileBodyText;

Hope this helps, I am not certain if this is what you are talking about (a little unclear) as you mentioned formatting the textbox and then textfile output in the same sentence.

Chi

They mostly come at night...mostly.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Formatting text output? C#

formating text in c++ www.computing.net/answers/programming/formating-text-in-c/6812.html

Text Reformat www.computing.net/answers/programming/text-reformat/17616.html

C Programing HELP www.computing.net/answers/programming/c-programing-help/13625.html