Click here to Skip to main content
15,897,187 members
Home / Discussions / C#
   

C#

 
QuestionFire a keyboard event.... Pin
Arish rivlin19-Sep-07 3:56
Arish rivlin19-Sep-07 3:56 
AnswerRe: Fire a keyboard event.... Pin
Judah Gabriel Himango19-Sep-07 4:35
sponsorJudah Gabriel Himango19-Sep-07 4:35 
GeneralRe: Fire a keyboard event.... Pin
Arish rivlin19-Sep-07 6:10
Arish rivlin19-Sep-07 6:10 
QuestionWhy does my Service with Custom UserNamePasswordValidator not run?? Pin
jogibear998819-Sep-07 3:20
jogibear998819-Sep-07 3:20 
AnswerChannelDispatcher error Pin
jogibear998819-Sep-07 8:45
jogibear998819-Sep-07 8:45 
QuestionHow to Dynamically populate Checkbox in Gridview asp.net 2.0 Pin
SJSaranya19-Sep-07 3:13
SJSaranya19-Sep-07 3:13 
AnswerRe: How to Dynamically populate Checkbox in Gridview asp.net 2.0 Pin
fearless stallion19-Sep-07 16:45
fearless stallion19-Sep-07 16:45 
QuestionMax size of String in body of email using Process.Start( String.Format("mailto:{0}?Subject={1}&Body={2}" Pin
lovelylooney19-Sep-07 3:07
lovelylooney19-Sep-07 3:07 
I have written code for windows application using C# where in on a button click, a new memo should be opened with email id, subject and body. I am using the code below

System.Diagnostics.Process.Start(String.Format("mailto:{0}?Subject={1}&Body={2}" , txtContEmail.Text.Trim(), strSubject, strBody));

The above code is working if the text specified in the variable strBody is short. But I have to create a body with the text given below

"Dear Customer,

Thank you for utilizing the the application.

The following license file(s) will expire in few days: .

The application will not operate with an expired license file. Please detach the license file attached to this e-mail and place it in the following location:C:\Program Files\SID\Bin. Replace the existing file with this new file.

Note: This file should only be saved in the before mentioned directory. Attempting to open the file may result in an “invalid file format” message.

Please also note that if you loose that license file and request to replace it, it would incur a USD 500 fee to cover the time and administration costs.

If our contact information has changed, please transfer this e-mail to the correct person and kindly provide us with his/her name, e-mail and phone number, thank you!

Don't hesitate to contact us if you have further questions.

Best regards,"

Because of this huge text nothing happens. But if I make the text shorter then the code is working. My default email account is Lotus Notes. Please help me.

Looney
AnswerRe: Max size of String in body of email using Process.Start( String.Format("mailto:{0}?Subject={1}&Body={2}" Pin
Pete O'Hanlon19-Sep-07 3:25
mvePete O'Hanlon19-Sep-07 3:25 
QuestionEnding another process Pin
__DanC__19-Sep-07 2:55
__DanC__19-Sep-07 2:55 
AnswerRe: Ending another process Pin
Pete O'Hanlon19-Sep-07 3:04
mvePete O'Hanlon19-Sep-07 3:04 
GeneralRe: Ending another process Pin
__DanC__19-Sep-07 3:06
__DanC__19-Sep-07 3:06 
AnswerRe: Ending another process Pin
Luc Pattyn19-Sep-07 6:00
sitebuilderLuc Pattyn19-Sep-07 6:00 
GeneralRe: Ending another process Pin
__DanC__19-Sep-07 6:02
__DanC__19-Sep-07 6:02 
GeneralRe: Ending another process Pin
Pete O'Hanlon19-Sep-07 9:58
mvePete O'Hanlon19-Sep-07 9:58 
GeneralRe: Ending another process Pin
martin_hughes19-Sep-07 12:43
martin_hughes19-Sep-07 12:43 
GeneralRe: Ending another process Pin
Pete O'Hanlon19-Sep-07 21:49
mvePete O'Hanlon19-Sep-07 21:49 
Questionpass progressBar control to function in a different class and thread Pin
gizmokaka19-Sep-07 2:46
gizmokaka19-Sep-07 2:46 
AnswerRe: pass progressBar control to function in a different class and thread Pin
gizmokaka19-Sep-07 4:04
gizmokaka19-Sep-07 4:04 
Questionhow to display a msg on leaving a page Pin
samerh19-Sep-07 2:29
samerh19-Sep-07 2:29 
AnswerRe: how to display a msg on leaving a page Pin
Guffa19-Sep-07 3:00
Guffa19-Sep-07 3:00 
QuestionPrevent cursor from leaving a control in WPF. Pin
Joakim Rosendahl19-Sep-07 2:29
Joakim Rosendahl19-Sep-07 2:29 
Questioncustom directshow filter Pin
Kuldeep Antil19-Sep-07 2:11
Kuldeep Antil19-Sep-07 2:11 
AnswerRe: custom directshow filter Pin
Jintal Patel19-Sep-07 20:03
Jintal Patel19-Sep-07 20:03 
GeneralRe: custom directshow filter Pin
Kuldeep Antil20-Sep-07 0:03
Kuldeep Antil20-Sep-07 0:03 

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.