469,955 Members | 2,494 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,955 developers. It's quick & easy.

how to call ActiveX from vb.net

Can anyone point me articles/links
on sthe steps to call ActiveX from VB.net?

TIA

lei xu
le****@hotmail.com
Nov 20 '05 #1
2 2800

"le****@hotmail.com" <an*******@discussions.microsoft.com> wrote in message
news:04****************************@phx.gbl...
Can anyone point me articles/links
on sthe steps to call ActiveX from VB.net?

TIA

lei xu
le****@hotmail.com


After it's registered, make a reference to it and use it like you did in
VB6. Works for me anyhew :)

HTH
Sueffel
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.558 / Virus Database: 350 - Release Date: 1/2/2004
Nov 20 '05 #2
Hello lei,
You add a reference to your project that points to the ActiveX obj in
question. (RH Click the reference folder in solution explorer. Choose
the COM tab in the dialog box that comes up and browse to the dll / ocx
that you want.
Vb.net will then provide a reference that you can declare in your code.
eg. browse to say, Winnt/system32/Widget.ocx which has say, a Public
getcolour function that returns the Widgets colour as a string.
Once you have the reference you can:
Dim myWidget as new Widget
Dim strColour as string
strColour = myWidget.getcolour
HTH
Bob
le****@hotmail.com wrote:
Can anyone point me articles/links
on sthe steps to call ActiveX from VB.net?

TIA

lei xu
le****@hotmail.com


Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Michael Grabelkovsky | last post: by
20 posts views Thread by Cybertof | last post: by
reply views Thread by Form Sheetal Joshi. | last post: by
3 posts views Thread by Angus Comber | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.