Click here to Skip to main content
15,904,153 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I have a problem with a CallbackService on WCF. I want to change a listbox from callback action, but any form isn't available from callbackservice. Is it possible to change some forms from callbackservice? I exactly want to put text in the listbox.
Posted
Comments
Eduard Keilholz 12-May-11 5:58am    
What dou you mean with 'is not available'?
Sandeep Mewara 12-May-11 6:26am    
Got any error?
Skynet87 12-May-11 6:46am    
Ive made mistake - and public code but no solution.

Your CallbackService class should take a form as a constructor parameter and store that in a field so it is available in callback methods. Don't forget to use Begin/EndInvoke (or just Invoke if it's for short things) for updating UI controls, as I would expect that that callback is called in a different thread.
 
Share this answer
 
Hi i work with a conference software but i just found out the program can do callback too.
If it helps, th link is here: Link[^]

If not, sorry to interrupt.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900