Formating mail in textbox

Please support our VB.NET advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jan 2008
Posts: 178
Reputation: sbv is an unknown quantity at this point 
Solved Threads: 8
sbv's Avatar
sbv sbv is offline Offline
Junior Poster

Formating mail in textbox

 
0
  #1
Sep 6th, 2008
hi

i need to get input of mail body in textbox. how can i get it formated in html?
plz guide.

thanks in advance.
Accept Challenges and Enjoy Coding... :)
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 178
Reputation: sbv is an unknown quantity at this point 
Solved Threads: 8
sbv's Avatar
sbv sbv is offline Offline
Junior Poster

Re: Formating mail in textbox

 
0
  #2
Sep 6th, 2008
hi friends.... i solved this by following code.

  1. Dim tmp = Microsoft.VisualBasic.Chr(13)
  2. TxtBody.Text = Strings.Replace(TxtBody.Text, tmp, "<br>")
  3. TxtBody.Text = Strings.Replace(TxtBody.Text, " ", "&nbsp;")
Accept Challenges and Enjoy Coding... :)
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 178
Reputation: sbv is an unknown quantity at this point 
Solved Threads: 8
sbv's Avatar
sbv sbv is offline Offline
Junior Poster

Re: Formating mail in textbox

 
0
  #3
Sep 11th, 2008
Is any other method instead of find and replace...?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the VB.NET Forum


Views: 506 | Replies: 2
Thread Tools Search this Thread



Tag cloud for VB.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC