Click here to Skip to main content
15,899,026 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to detect display type : CRT or LCD ? Pin
scoket5-Dec-10 22:41
scoket5-Dec-10 22:41 
QuestionSend SMS Pin
anishkannan5-Dec-10 20:30
anishkannan5-Dec-10 20:30 
AnswerRe: Send SMS Pin
Luc Pattyn5-Dec-10 21:26
sitebuilderLuc Pattyn5-Dec-10 21:26 
AnswerRe: Send SMS Pin
db7uk6-Dec-10 23:25
db7uk6-Dec-10 23:25 
QuestionEvents in Interfaces Pin
Richard Andrew x645-Dec-10 15:38
professionalRichard Andrew x645-Dec-10 15:38 
AnswerRe: Events in Interfaces Pin
Not Active5-Dec-10 16:30
mentorNot Active5-Dec-10 16:30 
GeneralRe: Events in Interfaces Pin
Richard Andrew x645-Dec-10 16:34
professionalRichard Andrew x645-Dec-10 16:34 
Questionevents between two threads Pin
igalep1325-Dec-10 8:03
igalep1325-Dec-10 8:03 
Hello,

I'm implement some UI application.

The problem i have is how to fire events between two threads ?

Thread A (ui main window/wpf) launch thread B (console app project) with the logic of the app. here i have some recursive algorithm, which generate some question to the user.
Then by event i fire this question to the main ui window and update the ui with the relevant question <b>(any other way to do it ?)</b>
After the user see the question he needs to insert some answer, and according to this input the recursive algorithm continue it's execution.
The problem is how to idle the recursive execution (while the user decide what to answer...)

I was thinking to use background-worker/busy waiting, but is it possible to fire events between threads ?

Thanks for help
AnswerRe: events between two threads Pin
Luc Pattyn5-Dec-10 8:45
sitebuilderLuc Pattyn5-Dec-10 8:45 
GeneralRe: events between two threads Pin
igalep1325-Dec-10 8:55
igalep1325-Dec-10 8:55 
GeneralRe: events between two threads Pin
Luc Pattyn5-Dec-10 9:42
sitebuilderLuc Pattyn5-Dec-10 9:42 
GeneralRe: events between two threads Pin
igalep1325-Dec-10 9:48
igalep1325-Dec-10 9:48 
GeneralRe: events between two threads Pin
Luc Pattyn5-Dec-10 9:57
sitebuilderLuc Pattyn5-Dec-10 9:57 
AnswerRe: events between two threads Pin
Not Active5-Dec-10 9:28
mentorNot Active5-Dec-10 9:28 
GeneralRe: events between two threads Pin
igalep1325-Dec-10 9:38
igalep1325-Dec-10 9:38 
GeneralRe: events between two threads Pin
Not Active5-Dec-10 9:56
mentorNot Active5-Dec-10 9:56 
GeneralRe: events between two threads [modified] Pin
igalep1325-Dec-10 10:47
igalep1325-Dec-10 10:47 
AnswerRe: yield Pin
Luc Pattyn5-Dec-10 11:25
sitebuilderLuc Pattyn5-Dec-10 11:25 
GeneralRe: yield Pin
Not Active5-Dec-10 11:32
mentorNot Active5-Dec-10 11:32 
GeneralRe: yield Pin
Pete O'Hanlon5-Dec-10 11:33
mvePete O'Hanlon5-Dec-10 11:33 
GeneralRe: yield Pin
Luc Pattyn5-Dec-10 11:37
sitebuilderLuc Pattyn5-Dec-10 11:37 
GeneralRe: yield Pin
igalep13211-Dec-10 0:45
igalep13211-Dec-10 0:45 
GeneralRe: yield Pin
Luc Pattyn11-Dec-10 1:00
sitebuilderLuc Pattyn11-Dec-10 1:00 
GeneralRe: yield [modified] Pin
igalep13211-Dec-10 4:53
igalep13211-Dec-10 4:53 
AnswerRe: yield Pin
Luc Pattyn11-Dec-10 14:03
sitebuilderLuc Pattyn11-Dec-10 14:03 

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.