Using an ActiveX control without a container

A

abhimanyu

Hi,

I am building a project using C# in VS2005.
I need to use a COM ActiveX control in my project but I do not have a
Form on which I want to place this control. I only want to create an
object of this control class and use it right away,

When I create an object and use the control, some of the methods dont
work because the ActiveX control is not initialized properly. Does
anyone have an idea on how to initialize an ActiveX control without
putting it on a container like Form..

regards
 
S

Shine Xavier

Ideally, you should be using just a COM object (with properties, methods and
events) rather than an ActiveX control. It shouldn't be that difficult.
Please give a try.

Thanks!
 
A

abhimanyu

Hi,
I tried to use the control using its control class but it doesn;t work.

I suppose I have to load its STATE like its loaded in
InitializeComponent() method when the control is placed on a form.

regards
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top