473,396 Members | 1,998 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Com object help

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
2 997
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
5
by: Jeff Greenberg | last post by:
Not an experienced c++ programmer here and I've gotten myself a bit stuck. I'm trying to implement a class lib and I've run into a sticky problem that I can't solve. I'd appreciate any help that I...
6
by: nique | last post by:
Hello, I am trying to convert a simple application I have written, first in vb6 then to vb.net and now I would like to convert it to c#. The part that I am having problems with in c# is...
6
by: Catherine Jones | last post by:
Hi all, we need urgent help in a matter. We are trying to pass a COM object from the client to server and are facing some problems in the same. We've our client in C# as well as the Server...
19
by: Simon Verona | last post by:
I'm not sure if I'm going down the correct route... I have a class which exposes a number of properties of an object (in this case the object represents a customer). Can I then use this...
5
by: Michael Moreno | last post by:
Hello, In a class I have this code: public object Obj; If Obj is a COM object I would like to call in the Dispose() method the following code: ...
3
by: lk | last post by:
I need some help regarding the mechanism to put in place to be able to dynamically update a remote object when the assembly where it is defined is modified, and this whitout having service...
1
by: =?ISO-8859-1?Q?Lasse_V=E5gs=E6ther_Karlsen?= | last post by:
I get the above error in some of the ASP.NET web applications on a server, and I need some help figuring out how to deal with it. This is a rather long post, and I hope I have enough details that...
14
by: sumsin | last post by:
From 'Inside the C++ Object Model' by 'Stanley B. Lippman' 'The primary strength of the C++ Object Model is its space and runtime efficiency. Its primary drawback is the need to recompile...
1
by: ssecorp | last post by:
>>super(object, type) <super: <class 'object'>, <type object>> <super: <class 'type'>, <type object>> how can both work? they can't both be the superclass of each other right? or is it some...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.