Click here to Skip to main content
15,890,579 members
Home / Discussions / C#
   

C#

 
QuestionCross Threads problemo (invalidoperationexception) Pin
Quake2Player22-May-09 15:47
Quake2Player22-May-09 15:47 
AnswerRe: Cross Threads problemo (invalidoperationexception) Pin
Luc Pattyn22-May-09 16:09
sitebuilderLuc Pattyn22-May-09 16:09 
GeneralRe: Cross Threads problemo (invalidoperationexception) Pin
Quake2Player22-May-09 16:28
Quake2Player22-May-09 16:28 
GeneralRe: Cross Threads problemo (invalidoperationexception) Pin
Luc Pattyn22-May-09 17:16
sitebuilderLuc Pattyn22-May-09 17:16 
GeneralRe: Cross Threads problemo (invalidoperationexception) Pin
Quake2Player22-May-09 17:23
Quake2Player22-May-09 17:23 
GeneralRe: Cross Threads problemo (invalidoperationexception) Pin
Luc Pattyn22-May-09 17:36
sitebuilderLuc Pattyn22-May-09 17:36 
AnswerRe: Cross Threads problemo (invalidoperationexception) Pin
beatles169222-May-09 20:46
beatles169222-May-09 20:46 
GeneralRe: Cross Threads problemo (invalidoperationexception) Pin
Mark Salsbery23-May-09 11:33
Mark Salsbery23-May-09 11:33 
beatles1692 wrote:
raise some events and you can handle them.These events will be run in the main thread


That comment seems a little misleading to me...

If you raise your own event from a BackgroundWorker thread, which would be from a
DoWork event handler, event handlers for your event will not be executed on the UI thread -
they will run on the background thread.

You would have to invoke those events on the UI thread just like you would
from any other thread.

Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: Cross Threads problemo (invalidoperationexception) Pin
beatles169223-May-09 22:25
beatles169223-May-09 22:25 
GeneralRe: Cross Threads problemo (invalidoperationexception) Pin
Quake2Player22-Jun-09 8:36
Quake2Player22-Jun-09 8:36 
Question_ID field goes wrong Pin
misCafe22-May-09 15:28
misCafe22-May-09 15:28 
AnswerRe: _ID field goes wrong Pin
Luc Pattyn22-May-09 16:13
sitebuilderLuc Pattyn22-May-09 16:13 
GeneralRe: _ID field goes wrong Pin
misCafe22-May-09 16:43
misCafe22-May-09 16:43 
GeneralRe: _ID field goes wrong Pin
fly90422-May-09 17:10
fly90422-May-09 17:10 
GeneralRe: _ID field goes wrong Pin
Luc Pattyn22-May-09 17:18
sitebuilderLuc Pattyn22-May-09 17:18 
GeneralRe: _ID field goes wrong Pin
Luc Pattyn22-May-09 17:19
sitebuilderLuc Pattyn22-May-09 17:19 
AnswerRe: _ID field goes wrong Pin
fly90422-May-09 16:34
fly90422-May-09 16:34 
GeneralRe: _ID field goes wrong Pin
misCafe22-May-09 17:27
misCafe22-May-09 17:27 
Questionwindows installer user interface checkbox to disable next button Pin
Member 202095122-May-09 11:07
Member 202095122-May-09 11:07 
QuestionChange FileAccess/FileShare permissions on a FileStream Pin
Dan Neely22-May-09 10:18
Dan Neely22-May-09 10:18 
AnswerRe: Change FileAccess/FileShare permissions on a FileStream Pin
Luc Pattyn22-May-09 11:21
sitebuilderLuc Pattyn22-May-09 11:21 
GeneralRe: Change FileAccess/FileShare permissions on a FileStream Pin
Dan Neely22-May-09 15:52
Dan Neely22-May-09 15:52 
QuestionHow to get the roles for a user other than the current one Pin
MGoetz22-May-09 8:22
MGoetz22-May-09 8:22 
AnswerRe: How to get the roles for a user other than the current one Pin
0x3c022-May-09 8:48
0x3c022-May-09 8:48 
GeneralRe: How to get the roles for a user other than the current one Pin
MGoetz22-May-09 9:13
MGoetz22-May-09 9:13 

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.