Using an HWnd

Please support our C# advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Apr 2009
Posts: 2
Reputation: adrianh is an unknown quantity at this point 
Solved Threads: 0
adrianh adrianh is offline Offline
Newbie Poster

Using an HWnd

 
0
  #1
Apr 20th, 2009
Hello everyone,

Ok, I've got a HWnd (the HWND was returned from an ActiveX control). I pass the HWND to a .NET control. I try to pass the HWND using Control.FromHandle() function and I get a null in response.

Why?

I want to make a .NET control become a child of the ActiveX control (this is so I can cover it, if you really want a full explanation, see below), so if there is another way of doing this, please let me know.

Thanks,


Adrian

--
Full Explanation:

Using a language called LabVIEW 7.0. Doesn't allow for .NET controls, but does allow for .NET objects. Want to put control on a front panel of a LabVIEW window. LabVIEW doesn't expose the window handles, so created an AX control which is to return the handle of the AX control so that I can paste the .NET control on top of it. What a work around eh?
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 2
Reputation: adrianh is an unknown quantity at this point 
Solved Threads: 0
adrianh adrianh is offline Offline
Newbie Poster

Re: Using an HWnd

 
0
  #2
Apr 21st, 2009
Bump
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 1095 | Replies: 1
Thread Tools Search this Thread



Tag cloud for C#
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC