943,936 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 5433
  • VB.NET RSS
Aug 17th, 2006
0

How to use Windowless ActiveX.dll in my project

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
cyman73 is offline Offline
11 posts
since Jul 2006
Aug 19th, 2006
0

Re: How to use Windowless ActiveX.dll in my project

The last line tells you, you can't. Is it windowless or is vb not seeing the window?
VB.NET Syntax (Toggle Plain Text)
  1. Unable to get window handle.. Windowless ActiveX are not supported.
I don't think there is anyway to fake it.
Last edited by waynespangler; Aug 19th, 2006 at 1:44 pm.
Reputation Points: 84
Solved Threads: 58
Posting Pro in Training
waynespangler is offline Offline
461 posts
since Dec 2002

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: code for detecting usb devices
Next Thread in VB.NET Forum Timeline: Term Project Ideas Please





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC