Click here to Skip to main content
15,913,221 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
" I try to deal with a problem
I have RichTextBox at my form .At code I read its text by myRichBox.Text
and send this text to people by email.
but format sending text by mail is not same as view at screen at richtextbox.

How can I read text what I see at richtextbox ?
"

I asked this question but realize my problem is a bit different.
when I write

" lll ll" at first line
" ooo oo" at second line
my text isnt seen at the same size althought I write same number of character because "o" is fatter than "l"
how can I force richTextBox but each character at on point so that
size of character will be no important

Thanks
Posted
Updated 6-Jul-10 21:31pm
v2
Comments
OriginalGriff 6-Jul-10 4:41am    
What code are you using to access the RichText and hand it to mail? Without that, we would be guessing...

There should be some property of RichTextBox to read formatted text in-place of plain-text.
 
Share this answer
 
as far as i know a E-Mail can be formatted as Html or Text and a richtextbox is formatted as rtf (because rtf means RichTextFormat).

At first you have to make sure, that you E-Mail is formatted as Html.
You can access the rtf string in the RichTextBox.Rtf Property, there you can see how a rtf string looks like.

There is surely a possibility to transform a rtf to html, you can look for a possibility on the internet, but i hope i could help find a way to get a answer.

Sorry for my bad english

Edit:
There is a article for RTF convertion :)
Look here: Writing Your Own RTF Converter
 
Share this answer
 
v2
Thanks for your answer
but I want to force RichTextBox to draw each charecter at same width
and I manage it by choose 'Courier New' font , and it works
but I have still problem.
if user copy text from another place which font is not suitable ,
text doesnt seem what I want.I want to make copied text 'Courier New' font. How can I do ?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900