W
WayneD
Hi All,
I'm writing a class that implements a COM interface. Unfortunately, one of
the methods passes in an HWND and I'm supposed to create a control with that
HWND as the parent. The idea is to plop my control onto the client's dialog.
Is this possible in C#??? There are 2 issues I'm concerned about:
1. What type of thingy should I create as the child control. I'm trying a
UserControl.
2. Is there some way to "attach" the HWND to a Form that I can then use to
set the Parent property of my newly created control?
I tried using Control.FromHandle, but that didn't work...
Thanks for any help!
Wayne
I'm writing a class that implements a COM interface. Unfortunately, one of
the methods passes in an HWND and I'm supposed to create a control with that
HWND as the parent. The idea is to plop my control onto the client's dialog.
Is this possible in C#??? There are 2 issues I'm concerned about:
1. What type of thingy should I create as the child control. I'm trying a
UserControl.
2. Is there some way to "attach" the HWND to a Form that I can then use to
set the Parent property of my newly created control?
I tried using Control.FromHandle, but that didn't work...
Thanks for any help!
Wayne