Click here to Skip to main content
15,921,841 members

Comments by jabbawok (Top 1 by date)

jabbawok 26-Oct-10 17:50pm View    
Ok I read your other answer in the other thread but I still don't get it.

If I was passing a Windows.Forms.Control to the non-UI thread, then I could use a wrapper function for updating via Control.Invoke (checking InvokeRequired first of course). But I don't want to have to pass a Control. I may want to just grab the Bitmap and paint it directly on a form. So I'm passing a delegate to the non-UI thread, which gets "fired" by the backgound thread whenever another Bitmap is available. But doesn't this delegate need to run in the UI-thread, even if it's just to paint on the form? If so, how is it done? I don't have a reference to a Control to call Invoke/InvokeRequired on in this case.