| | |
How to use Windowless ActiveX.dll in my project
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jul 2006
Posts: 11
Reputation:
Solved Threads: 0
Hello,
I am trying to use a ActiveX component (written by someone else) in my Visual Basic 2005 project. I am new to VB2005, so please bear with me.
I added the COM reference to the ActiveX.dll class to the project.
I choose the Toolbox Items from COM Components Tab and added the ActiveX component to the General Toolbox.
I am able to place this ActiveX component in the Main.vb form, I can see the object's properties but I encounter a problem when I attempt to run (F5) the project. I get the following error:
at System.Windows.Forms.UnsafeNativeMethods.IOleObject.DoVerb(Int32 iVerb, IntPtr lpmsg, IOleClientSite pActiveSite, Int32 lindex, IntPtr hwndParent, COMRECT lprcPosRect)
at System.Windows.Forms.AxHost.DoVerb(Int32 verb)
at System.Windows.Forms.AxHost.InPlaceActivate()
Unable to get window handle.. Windowless ActiveX are not supported.
What am I doing wrong? Your help is greatly appreciated.
Thank you.
I am trying to use a ActiveX component (written by someone else) in my Visual Basic 2005 project. I am new to VB2005, so please bear with me.
I added the COM reference to the ActiveX.dll class to the project.
I choose the Toolbox Items from COM Components Tab and added the ActiveX component to the General Toolbox.
I am able to place this ActiveX component in the Main.vb form, I can see the object's properties but I encounter a problem when I attempt to run (F5) the project. I get the following error:
at System.Windows.Forms.UnsafeNativeMethods.IOleObject.DoVerb(Int32 iVerb, IntPtr lpmsg, IOleClientSite pActiveSite, Int32 lindex, IntPtr hwndParent, COMRECT lprcPosRect)
at System.Windows.Forms.AxHost.DoVerb(Int32 verb)
at System.Windows.Forms.AxHost.InPlaceActivate()
Unable to get window handle.. Windowless ActiveX are not supported.
What am I doing wrong? Your help is greatly appreciated.
Thank you.
•
•
Join Date: Dec 2002
Posts: 461
Reputation:
Solved Threads: 56
The last line tells you, you can't. Is it windowless or is vb not seeing the window?
I don't think there is anyway to fake it.
VB.NET Syntax (Toggle Plain Text)
Unable to get window handle.. Windowless ActiveX are not supported.
Last edited by waynespangler; Aug 19th, 2006 at 1:44 pm.
![]() |
Similar Threads
- Creating a VB dll (Visual Basic 4 / 5 / 6)
- ActiveX DLL reference (Visual Basic 4 / 5 / 6)
- ActiveX DLL - Permission Denied Error (Visual Basic 4 / 5 / 6)
- Javascript/VBScript within VB6 application (Visual Basic 4 / 5 / 6)
- Debug Activex dll from asp (ASP)
- dll in VB (Visual Basic 4 / 5 / 6)
Other Threads in the VB.NET Forum
- Previous Thread: code for detecting usb devices
- Next Thread: Term Project Ideas Please
| Thread Tools | Search this Thread |
.net .net2005 30minutes 2005 2008 access account arithmetic array basic binary bing button buttons center check code combobox component connectionstring crystalreport data database databasesearch datagrid datagridview date design dissertation dissertations dissertationthesis dropdownlist excel fade file-dialog folder ftp generatetags google gridview hardcopy image images input insert intel internet mobile monitor ms net networking objects output passingparameters peertopeervideostreaming picturebox picturebox1 port print problem problemwithinstallation project reports" save savedialog searchbox searchvb.net select serial shutdown soap survey table tcp temperature text textbox timer toolbox trim update updown user usercontrol vb vb.net vb.netcode vb.netformclosing()eventpictureboxmessagebox vb2008 vbnet view visual visualbasic visualbasic.net visualstudio visualstudio2008 web winforms wpf





