Thread Safe: Event

I use events in my methods and what I like to know is, must I do something to make the events thread-safe or are the already that by default?
LVL 1
AWestEngAsked:
Who is Participating?
 
hongjunConnect With a Mentor Commented:
How to: Make Thread-Safe Calls to Windows Forms Controls
http://msdn.microsoft.com/en-us/library/ms171728.aspx

hongjun
0
 
SaedSalmanCommented:
at the constructor add this line of code:
Control.CheckForIllegalCrossThreadCalls = true;

CheckForIllegalCrossThreadCalls is enabled by default is visual studio 2005
0
 
AWestEngAuthor Commented:
Not exactly what I was looking for, but maybe my fault. thx anyway
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.