-
April 11th, 2011, 05:38 AM
#1
pass parameter to running thread
I have a c# program once when one of the button pressed , a parameter can pass to running thread, as
public void TransfersThread(object data1)
{
.....
bRunning = true;
for (; bRunning && bResult; )
{
outData[0] = Convert.ToByte(data1);
......
}
}
How can I write a program as to pass parameter to this continous running thread ???
-
April 11th, 2011, 01:59 PM
#2
Re: pass parameter to running thread
Search bing or google for "thread C#". In the search results look for the many hits that contain the word "tutorial".
-
April 12th, 2011, 06:46 AM
#3
Re: pass parameter to running thread
Passing a parameter souds like calling a method, co call a method on instace common to both threads.
- Make it run.
- Make it right.
- Make it fast.
Don't hesitate to rate my post.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|