User Profile
Collapse
-
Why does threading lock in different classes?
Ok first I must preface this question with a disclaimer, I'm really new to threading so this may be a 'newbie' question but I searched google and couldn't find an answer. As I understand it a critical section is code that can only be accessed by one thread, the danger being one thread will overwrite a value before the other is finished and vice versa. What can you do about changes made outside of your class for example, I have a line monitoring program:... -
Textbox Formating c#
I am trying to make a program that emails the text of a RichTextBox. The problem is that when I send the email, the text is unformatted i.e. no line breaks, no font specifications, etc.
I tried using the Rtf property of the RichTextBox but the email sent contains the actual rtf code and not the formatted text.
...
aMessage.Body = richTextBox1.Te xt;
smtp.Send(aMess age);
Thanks in advance....
No activity results to display
Show More