I need to fetch hWnd IntPtr of the form, which hold user control from inside
the user control. How to do this.
this.Handle returns wrong results.
Another question form the same field:
I want to use ONE and ONLY ONE Interoped ActiveX on my control. So in the
control I make static axControl wich get hWnd of the windows to show itself.
I override all disposes (to keep the instance) and make dispose on main
application, BUT when openning new instance of the same Windows which holds
my control (with static ActiveX in it) the ActiveX disappears from the
previouse window. In debugger I can see that while oppening second window it
reuse the static ActiveX from previouse window and, of couse, ActiveX
support to be runned from different iunstances at the same time (checked in
C++ project - there it works fine) What is the problem? Maybe doing
something wrong ...
One more problem with the same thing. When closing ALL instances of the
forms (holds controls with AX) I get an error "Cannot access a disposed
object", when all disposes are overrided.
Please advice
--
Tamir Khason
You want dot.NET? Just ask:
"Please, www.dotnet.us "