473,396 Members | 2,018 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.

Using an ActiveX control without a container

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

Dec 22 '06 #1
2 2959
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!

"abhimanyu" <ab*************@gmail.comwrote in message
news:11**********************@73g2000cwn.googlegro ups.com...
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

Dec 22 '06 #2
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

Dec 22 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jeff M | last post by:
For my application an activeX refers to "program displayed within Internet Explorer" After looking over the docs for VB.NET it looks impossible. ---START--- USERCONTROL CHANGES IN VISUAL...
3
by: Neo | last post by:
I have a usercontrol that I am trying to use as an ActiveX Control on a WebPage, however it refereneces an Assembly that whenever the first call is made to anything in the Assembly a Security...
0
by: ManjuG | last post by:
Hi, I have created an ActiveX control and build the project with 'No Common Language RunTime support' option and everything worked fine. But when I used the option 'Common Language Runtime Support...
2
by: S.Kartikeyan | last post by:
Hello group, I have the follwing problem with microsoft web browser activex control. I have a fileopendialog control. I open different files in the IEActivex control based on the filename in the...
0
by: 詹亚军 | last post by:
can activex control export large data to container by event's para ? I develop a activex control,and want to export large data to container(IE),web page can use javascript to capture the...
0
by: Vijay | last post by:
I m trying hard to create an activeX control that will be having an datagrid control in VC++ 6.0. My Approach: I am creating a project of type MFC ActiveX control wizard. Adding a dialog to the...
53
by: Hexman | last post by:
Hello All, I'd like your comments on the code below. The sub does exactly what I want it to do but I don't feel that it is solid as all. It seems like I'm using some VB6 code, .Net2003 code,...
1
by: jurgro | last post by:
Hello. I am developing an Activex control to show animated gif and other images. With windowlessActivate flag the control is transparent. I want to show animated gif in a thread. Now the problem:...
0
by: DKn | last post by:
Hello All, I am having an ACtiveX Control developed in C#.Net 2.0 windows Control Library. I have tested this control.TCS through ACtiveX Control Test Container. It is working fine, But the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.