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

Com object help

P: n/a
jt
I have a com object that I don't know how to expose its methods and insert
it events.

I've been using this activex control in VB6 and now learning VB.NET. I've
added the activex control to my project but how can I use it?

In VB6 I would just select the object name in drop down box on the left then
on the right I would select what event I want to use and be inserted.

Any help on the VB.NET how can I get it to insert its events, etc...

Thanks!
jt
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
jt wrote:
I have a com object that I don't know how to expose its methods and insert
it events.

I've been using this activex control in VB6 and now learning VB.NET. I've
added the activex control to my project but how can I use it?

In VB6 I would just select the object name in drop down box on the left
then on the right I would select what event I want to use and be inserted.

Any help on the VB.NET how can I get it to insert its events, etc...

Thanks!
jt


Is this a control or a code component? If it is a code component, just set
the reference and VB.NET will generate a RCW (runtime callable wrapper) for
your object. You should then be able to see it in the object browswer.
Import it's namespace, and use it just like any other object. If it is a
control - just add it to your tool box and drop it on the form.

--
Tom Shelton [MVP]
Nov 21 '05 #2

P: n/a
jt
Thanks Tom!

It is a 3rd party control. Added it to the toolbox and then thr form as you
suggested.

Thanks again,
jt

"Tom Shelton" <to*@YOUKNOWTHEDRILLmtogden.com> wrote in message
news:uG**************@TK2MSFTNGP12.phx.gbl...
jt wrote:
I have a com object that I don't know how to expose its methods and insert it events.

I've been using this activex control in VB6 and now learning VB.NET. I've added the activex control to my project but how can I use it?

In VB6 I would just select the object name in drop down box on the left
then on the right I would select what event I want to use and be inserted.
Any help on the VB.NET how can I get it to insert its events, etc...

Thanks!
jt
Is this a control or a code component? If it is a code component, just

set the reference and VB.NET will generate a RCW (runtime callable wrapper) for your object. You should then be able to see it in the object browswer.
Import it's namespace, and use it just like any other object. If it is a
control - just add it to your tool box and drop it on the form.

--
Tom Shelton [MVP]

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.