Hi ,
I have written an assemblyin C# which uses threads, and I want to add the reference of this assembly in bothWindows Form and ASP.NET Web Form.
There is a method in a thread of my assembly which shouldsend the current status of processingto Windows Form and Web Form .
My problem is, I first used the 'invoke and delegates' mechanismfrom my assembly to update WindowForm control , but this technique did't work on WebForm control as I could't find any equiavalent of 'Invoke' in WebForm .
Now I tried to use the Delegates and Events , I fire events from my assembly and try to catch those events in my WIndow Form , but getting error that "cross-thread operation is not valid" as I am trying to update GUI control frm my own thread....
Is there any way around to this ? I want to use technique through which I can update my both Win Form and Web Form controls !
Please I need help I m realy very badly struck here...
Thanks in advance.