Win Form & Web Form Control Update from a thread in Assembly
-
Hi , I have written an assembly in C# which uses threads, and I want to add the reference of this assembly in both Windows Form and ASP.NET Web Form. There is a method in a thread of my assembly which should send the current status of processing to Windows Form and Web Form . My problem is, I first used the 'invoke and delegates' mechanism from 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. ZINK
HELLO