| | |
Using an HWnd
Please support our C# advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Apr 2009
Posts: 2
Reputation:
Solved Threads: 0
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?
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?
![]() |
Similar Threads
- GDI - hwnd and OOP (C++)
- Linker errors using HWND (C++)
- ShowWindow(hWnd, SW_HIDE); Does not work -- Only with "SW_HIDE" ??? (C++)
Other Threads in the C# Forum
- Previous Thread: execution comes from catch to try
- Next Thread: How can I save the class
Views: 1095 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for C#
.net access ado.net algorithm array barchart bitmap box broadcast button buttons c# chat check checkbox class client color combobox control conversion csharp custom database datagrid datagridview dataset datetime degrees development drawing encryption enum event excel file files form format ftp function gcd gdi+ http httpwebrequest image index input java list listbox listener login mandelbrot math mouseclick mysql networking object oracle path photoshop picturebox pixelinversion post prime programming radians regex remote remoting resource richtextbox save saving serialization server sleep socket sql statistics stream string table tcp text textbox thread time timer treeview update usercontrol validation view webbrowser windows winforms wpf xml





