Forum Discussion

tomas_panik's avatar
tomas_panik
Occasional Contributor
15 years ago

Unexpected or overlapping window event in .NET library

Hello,

is there any way how to trap "overlapping window" event in .NET (visual studio) other then through COM component AxEventControl? I am accessing TC from dll library (encapsulating TC functions) so I don't really use forms where to place that COM component. As long as dll doesn't have any mainline static entry point I get error: "ActiveX control cannot be instantiated because the current thread is not in a single-threaded apartment." when I try to create that component dynamically. Does exist any solution? 


Thanks


--

Tomas Panik

QA Specialist

AVG Technologies

tomas.panik@avg.com 


1 Reply