Click here to Skip to main content
15,900,258 members
Home / Discussions / C#
   

C#

 
Questionquery regarding the Language usage Pin
John.L.Ponratnam11-Oct-07 21:10
John.L.Ponratnam11-Oct-07 21:10 
AnswerRe: query regarding the Language usage Pin
Aavesh Agarwal11-Oct-07 21:14
Aavesh Agarwal11-Oct-07 21:14 
GeneralRe: query regarding the Language usage Pin
John.L.Ponratnam12-Oct-07 20:20
John.L.Ponratnam12-Oct-07 20:20 
AnswerRe: query regarding the Language usage Pin
Guffa11-Oct-07 21:18
Guffa11-Oct-07 21:18 
Questionset format (Font Size) of txt file in C# Pin
Ranjeet from delhi11-Oct-07 21:03
Ranjeet from delhi11-Oct-07 21:03 
AnswerRe: set format (Font Size) of txt file in C# Pin
Guffa11-Oct-07 21:19
Guffa11-Oct-07 21:19 
GeneralRe: set format (Font Size) of txt file in C# Pin
Ranjeet from delhi11-Oct-07 21:36
Ranjeet from delhi11-Oct-07 21:36 
GeneralRe: set format (Font Size) of txt file in C# Pin
lmoelleb11-Oct-07 22:32
lmoelleb11-Oct-07 22:32 
I am not sure you understood the answer you where given.

A text file (.txt) simply can not contain any formatting. It can contain characters only - and even then you need to know the codepage to decode them correctly, unless you use UTF8 or UTF16 with a Byte Order Mark.

If you want to write formatted text, two obvious solutions spring to mind:
Use rtf format - create a small example text in Write (not Word, it clutters the rtf with too many codes) save it as rtf, rename it to .txt and then open it in notepad. Alternatively create a RichTextControl (it can be hidden) and set the text and formatting in this control and get the RTF from it.

Instead of RTF, you should consider simply writing HTML.


AnswerRe: set format (Font Size) of txt file in C# Pin
Guffa11-Oct-07 22:34
Guffa11-Oct-07 22:34 
QuestionGet Process UserName Pin
Patricio Tapia11-Oct-07 20:58
Patricio Tapia11-Oct-07 20:58 
AnswerRe: Get Process UserName Pin
Spunky Coder11-Oct-07 21:03
Spunky Coder11-Oct-07 21:03 
GeneralRe: Get Process UserName Pin
Patricio Tapia11-Oct-07 21:32
Patricio Tapia11-Oct-07 21:32 
AnswerRe: Get Process UserName Pin
martin_hughes12-Oct-07 0:21
martin_hughes12-Oct-07 0:21 
QuestionParameter Collection Implementation Pin
Sonia Gupta11-Oct-07 20:43
Sonia Gupta11-Oct-07 20:43 
AnswerRe: Parameter Collection Implementation Pin
N a v a n e e t h11-Oct-07 21:25
N a v a n e e t h11-Oct-07 21:25 
GeneralRe: Parameter Collection Implementation Pin
Sonia Gupta11-Oct-07 21:33
Sonia Gupta11-Oct-07 21:33 
AnswerRe: Parameter Collection Implementation Pin
m@u11-Oct-07 21:32
m@u11-Oct-07 21:32 
QuestionAcessing Windows Task Scheduler Pin
meeram39511-Oct-07 20:17
meeram39511-Oct-07 20:17 
AnswerRe: Acessing Windows Task Scheduler Pin
TJoe12-Oct-07 2:08
TJoe12-Oct-07 2:08 
GeneralRe: Acessing Windows Task Scheduler Pin
PIEBALDconsult12-Oct-07 4:37
mvePIEBALDconsult12-Oct-07 4:37 
QuestionLocalize Image/Picture Pin
Student1111-Oct-07 20:14
Student1111-Oct-07 20:14 
AnswerRe: Localize Image/Picture Pin
Spunky Coder11-Oct-07 20:26
Spunky Coder11-Oct-07 20:26 
GeneralRe: Localize Image/Picture Pin
Student1111-Oct-07 20:38
Student1111-Oct-07 20:38 
GeneralRe: Localize Image/Picture Pin
Spunky Coder11-Oct-07 21:00
Spunky Coder11-Oct-07 21:00 
GeneralRe: Localize Image/Picture Pin
Student1111-Oct-07 21:08
Student1111-Oct-07 21:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.