Click here to Skip to main content
15,917,174 members
Home / Discussions / C#
   

C#

 
JokeRe: Delegates Pin
Pete O'Hanlon2-Nov-07 10:59
mvePete O'Hanlon2-Nov-07 10:59 
GeneralRe: Delegates Pin
sabrown1002-Nov-07 13:45
sabrown1002-Nov-07 13:45 
AnswerRe: Delegates - Productive [modified] Pin
KennyPatel2-Nov-07 22:35
KennyPatel2-Nov-07 22:35 
QuestionFrame refresh information Pin
Yigal Agam2-Nov-07 5:26
Yigal Agam2-Nov-07 5:26 
QuestionRead web.config authorization's Pin
GreenGiant832-Nov-07 4:53
GreenGiant832-Nov-07 4:53 
QuestionAccessing control from seperate class Pin
oceanexplorer2-Nov-07 4:10
oceanexplorer2-Nov-07 4:10 
AnswerRe: Accessing control from seperate class Pin
led mike2-Nov-07 4:59
led mike2-Nov-07 4:59 
GeneralRe: Accessing control from seperate class Pin
oceanexplorer2-Nov-07 5:11
oceanexplorer2-Nov-07 5:11 
Yep I know I'm having a dumb blonde moment!

To be honest I know about accesing controls from other classes etc. But my difficulty with this one is I am dealing with threading, I have a UI that runs on one thread, when a button is pressed, it creates a new thread and goes of and executes another (labour intensive task), within the running task I want to make callbacks to the UI to update a listbox with messages.

I have setup the delegates fine but my trouble is in accessing the listbox control to call the begininvoke method e.g.

lstLogger.BeginInvoke(delegate, object)

To call this from the other class I would need to create a new instance of the Logger class which contains the listbox lstLogger, but I don't want to do this, I want to invoke a method on a seperate thread that is already running.

It's driving me nuts, all the examples I can find do it from within the same class, which is easy to set up as I have access to the lstLogger control.

Hope that explains a bit more and doens't make me sound so dumb!

Regards

Paul
GeneralRe: Accessing control from seperate class Pin
led mike2-Nov-07 5:22
led mike2-Nov-07 5:22 
GeneralRe: Accessing control from seperate class Pin
oceanexplorer2-Nov-07 5:35
oceanexplorer2-Nov-07 5:35 
GeneralRe: Accessing control from seperate class Pin
led mike2-Nov-07 7:09
led mike2-Nov-07 7:09 
QuestionC# based web service: Referring IP address? Pin
Jerry Evans2-Nov-07 4:03
Jerry Evans2-Nov-07 4:03 
AnswerRe: C# based web service: Referring IP address? Pin
Jerry Evans2-Nov-07 4:53
Jerry Evans2-Nov-07 4:53 
QuestionExecute script with trasaction on firebird database server Pin
Razvan Dimescu2-Nov-07 3:41
Razvan Dimescu2-Nov-07 3:41 
AnswerRe: Execute script with trasaction on firebird database server Pin
Razvan Dimescu2-Nov-07 4:46
Razvan Dimescu2-Nov-07 4:46 
QuestionThreading and cross-threading Pin
oceanexplorer2-Nov-07 3:16
oceanexplorer2-Nov-07 3:16 
AnswerRe: Threading and cross-threading Pin
Daniel Grunwald2-Nov-07 3:29
Daniel Grunwald2-Nov-07 3:29 
GeneralRe: Threading and cross-threading Pin
oceanexplorer2-Nov-07 3:37
oceanexplorer2-Nov-07 3:37 
AnswerCan anyone still answer this? Pin
oceanexplorer2-Nov-07 5:13
oceanexplorer2-Nov-07 5:13 
AnswerRe: Threading and cross-threading Pin
m@u2-Nov-07 6:29
m@u2-Nov-07 6:29 
QuestionXP ICONS Pin
half-life2-Nov-07 2:41
half-life2-Nov-07 2:41 
AnswerRe: XP ICONS Pin
Pete O'Hanlon2-Nov-07 3:31
mvePete O'Hanlon2-Nov-07 3:31 
GeneralRe: XP ICONS [modified] Pin
half-life2-Nov-07 5:00
half-life2-Nov-07 5:00 
QuestionHow can I check if a node in a treeview allready exist ? Pin
Kenth Ringsby2-Nov-07 2:31
Kenth Ringsby2-Nov-07 2:31 
AnswerRe: How can I check if a node in a treeview allready exist ? Pin
Giorgi Dalakishvili2-Nov-07 2:53
mentorGiorgi Dalakishvili2-Nov-07 2:53 

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.