By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,417 Members | 1,088 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,417 IT Pros & Developers. It's quick & easy.

how to call ActiveX from vb.net

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a

"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

P: n/a
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.