Click here to Skip to main content
15,898,747 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to catch event for contextMenuStrip Pin
superdragon29-Jun-06 12:22
superdragon29-Jun-06 12:22 
Questionmultithreading problem Pin
CherezZaboro29-Jun-06 10:58
CherezZaboro29-Jun-06 10:58 
AnswerRe: multithreading problem Pin
Josh Smith29-Jun-06 11:10
Josh Smith29-Jun-06 11:10 
QuestionRe: multithreading problem Pin
therealmccoy29-Jun-06 12:03
therealmccoy29-Jun-06 12:03 
AnswerRe: multithreading problem Pin
Mike Poz29-Jun-06 21:22
Mike Poz29-Jun-06 21:22 
GeneralRe: multithreading problem Pin
CherezZaboro30-Jun-06 5:50
CherezZaboro30-Jun-06 5:50 
GeneralRe: multithreading problem Pin
Mike Poz30-Jun-06 7:02
Mike Poz30-Jun-06 7:02 
QuestionRe: multithreading problem Pin
CherezZaboro30-Jun-06 7:27
CherezZaboro30-Jun-06 7:27 
So I dropped a backgroundWorker on my main Form, named bgWorker and added two even handlers:
<br />
        private void OnBtnExecute(object sender, DoWorkEventArgs e)<br />
        {<br />
            bgWorker.RunWorkerAsync();<br />
        }<br />
<br />
        // this is second thread proc as I understand it and while I'm here main threads UI is not     <br />
        // responsive <br />
        private void bgWorker_DoWork(object sender, DoWorkEventArgs e)<br />
        {<br />
            <br />
            // oDCRR is the COM object that is created in main thread and in this second thread<br />
            // does something very long in the ExecuteEx<br />
            e.Result = oDCRR.ExecuteEx();<br />
        }<br />
<br />
        private void bgWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)<br />
        {<br />
         // here I process results - this is executed in the main thread again...<br />
        }<br />

AnswerRe: multithreading problem Pin
Mike Poz30-Jun-06 10:40
Mike Poz30-Jun-06 10:40 
QuestionReflection with static inherited methods Pin
osamahmirza29-Jun-06 10:45
osamahmirza29-Jun-06 10:45 
AnswerRe: Reflection with static inherited methods Pin
Josh Smith29-Jun-06 11:04
Josh Smith29-Jun-06 11:04 
GeneralRe: Reflection with static inherited methods Pin
guroo1329-Jun-06 12:57
guroo1329-Jun-06 12:57 
AnswerRe: Reflection with static inherited methods Pin
Guffa29-Jun-06 13:40
Guffa29-Jun-06 13:40 
GeneralRe: Reflection with static inherited methods Pin
guroo1329-Jun-06 13:51
guroo1329-Jun-06 13:51 
QuestionVS 2005 User Control Toolbox question Pin
LongRange.Shooter29-Jun-06 10:34
LongRange.Shooter29-Jun-06 10:34 
AnswerRe: VS 2005 User Control Toolbox question Pin
Kamal Sagar30-Jun-06 1:10
Kamal Sagar30-Jun-06 1:10 
GeneralRe: VS 2005 User Control Toolbox question Pin
LongRange.Shooter30-Jun-06 11:55
LongRange.Shooter30-Jun-06 11:55 
QuestionHere's a wierd one for you... Pin
BoneSoft29-Jun-06 10:29
BoneSoft29-Jun-06 10:29 
AnswerRe: Here's a wierd one for you... Pin
LongRange.Shooter29-Jun-06 10:38
LongRange.Shooter29-Jun-06 10:38 
GeneralRe: Here's a wierd one for you... Pin
BoneSoft29-Jun-06 10:44
BoneSoft29-Jun-06 10:44 
AnswerRe: Here's a wierd one for you... Pin
led mike29-Jun-06 10:51
led mike29-Jun-06 10:51 
GeneralRe: Here's a wierd one for you... Pin
BoneSoft29-Jun-06 10:55
BoneSoft29-Jun-06 10:55 
AnswerRe: Here's a wierd one for you... Pin
Josh Smith29-Jun-06 11:09
Josh Smith29-Jun-06 11:09 
GeneralRe: Here's a wierd one for you... Pin
BoneSoft29-Jun-06 11:12
BoneSoft29-Jun-06 11:12 
GeneralRe: Here's a wierd one for you... Pin
Josh Smith29-Jun-06 11:12
Josh Smith29-Jun-06 11:12 

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.