Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
GeneralRe: Selecting Row in GridView to show another GridView Pin
junisulaiman2-May-07 7:00
junisulaiman2-May-07 7:00 
GeneralRe: Selecting Row in GridView to show another GridView Pin
SABhatti2-May-07 13:16
SABhatti2-May-07 13:16 
QuestionDigital Persona 4000B Finer Reader Pin
| Muhammad Waqas Butt |23-Apr-07 3:49
professional| Muhammad Waqas Butt |23-Apr-07 3:49 
AnswerRe: Digital Persona 4000B Finer Reader Pin
Judah Gabriel Himango23-Apr-07 4:08
sponsorJudah Gabriel Himango23-Apr-07 4:08 
GeneralRe: Digital Persona 4000B Finer Reader Pin
| Muhammad Waqas Butt |23-Apr-07 4:18
professional| Muhammad Waqas Butt |23-Apr-07 4:18 
Questioncan't get WorkerThread to work using .Invoke Pin
Ashley Sanders23-Apr-07 3:46
Ashley Sanders23-Apr-07 3:46 
AnswerRe: can't get WorkerThread to work using .Invoke Pin
Judah Gabriel Himango23-Apr-07 4:04
sponsorJudah Gabriel Himango23-Apr-07 4:04 
AnswerRe: can't get WorkerThread to work using .Invoke Pin
Mark Greenwood23-Apr-07 4:07
Mark Greenwood23-Apr-07 4:07 
I've had a look at the demo app by Alex in his guid to worker threads,

here's what I can see and hopefully it will cast some light on what is wrong.

First m_form is defined within the file LongProcess.cs as

<br />
// Reference to main form used to make syncronous user interface calls:<br />
MainForm m_form;<br />


It is set when the function

<br />
longProcess = new LongProcess(m_EventStopThread, m_EventThreadStopped, this);<br />


is called from MainForm.cs - here 'this' is the MainForm in question. He just stores that instance in 'm_form', that way he can then 'Invoke" things on the MainForm thread later within the Run method in longprocess.cs.

As for why

<br />
longProcess = new LongProcess(m_EventStopThread, m_EventThreadStopped, this);<br />


is causing a compiler problem on your code - my belief would be that you have altered the code somehow so that it no longer acceps THREE parameters, or maybe you have changed the name of your form to be Form1 (which would be the default), if that is the case you need to change the parameter of the Form expected in longprocess.cs in the LongProcess method to be Form1 and not MainForm as in Alex's code.

Hope this helps get you started and good luck with the presentation....

Mark.
GeneralRe: can't get WorkerThread to work using .Invoke Pin
Ashley Sanders23-Apr-07 5:48
Ashley Sanders23-Apr-07 5:48 
QuestionHow to send HTTP request from C# code? Pin
Affan Toor23-Apr-07 3:37
Affan Toor23-Apr-07 3:37 
AnswerRe: How to send HTTP request from C# code? Pin
Jax_qqq23-Apr-07 3:58
Jax_qqq23-Apr-07 3:58 
GeneralRe: How to send HTTP request from C# code? Pin
Affan Toor23-Apr-07 5:37
Affan Toor23-Apr-07 5:37 
AnswerRe: How to send HTTP request from C# code? Pin
Judah Gabriel Himango23-Apr-07 4:01
sponsorJudah Gabriel Himango23-Apr-07 4:01 
GeneralRe: How to send HTTP request from C# code? Pin
Jax_qqq23-Apr-07 4:33
Jax_qqq23-Apr-07 4:33 
GeneralRe: How to send HTTP request from C# code? Pin
Judah Gabriel Himango23-Apr-07 4:40
sponsorJudah Gabriel Himango23-Apr-07 4:40 
QuestionHow to create a Field Object dynamically in Crystalreport Pin
renjithgk23-Apr-07 2:50
renjithgk23-Apr-07 2:50 
QuestionThe beer game Pin
moh_rabie23-Apr-07 2:26
moh_rabie23-Apr-07 2:26 
AnswerRe: The beer game Pin
Colin Angus Mackay23-Apr-07 2:41
Colin Angus Mackay23-Apr-07 2:41 
GeneralRe: The beer game Pin
moh_rabie23-Apr-07 2:46
moh_rabie23-Apr-07 2:46 
GeneralRe: The beer game Pin
Colin Angus Mackay23-Apr-07 3:05
Colin Angus Mackay23-Apr-07 3:05 
GeneralRe: The beer game Pin
Tamimi - Code23-Apr-07 3:11
Tamimi - Code23-Apr-07 3:11 
GeneralRe: The beer game Pin
Martin#23-Apr-07 3:14
Martin#23-Apr-07 3:14 
GeneralRe: The beer game Pin
moh_rabie23-Apr-07 3:19
moh_rabie23-Apr-07 3:19 
GeneralRe: The beer game Pin
Tamimi - Code23-Apr-07 3:29
Tamimi - Code23-Apr-07 3:29 
GeneralRe: The beer game Pin
Leslie Sanford23-Apr-07 5:44
Leslie Sanford23-Apr-07 5:44 

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.