473,795 Members | 2,919 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2976
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.comwrot e in message
news:11******** **************@ 73g2000cwn.goog legroups.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
InitializeCompo nent() 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
2232
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 BASIC .NET In Visual Basic 6.0, UserControl projects (also known as ActiveX Control projects) were used to create ActiveX controls. After they were compiled,
3
2098
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 Exception is throw. I am having a lot of trouble debugging this, because I cannot catch the exception in my code. However if I could run the control under the Internet Zone Security settings I could probably find this easily. Does anyone know how to...
0
3264
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 (/clr)' I still could build the project. But when I tried to create the ActiveX control in the test container it displays an error message 'Failed to create control:Unspecified error'. Please help to solve this problem. Actually I wanted to try...
2
4975
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 fileopendialog control. When i open ppt or doc or pdf files it is nice that it opens them in its window. THE PROBLEM NOW IS when ieactivex control is opening these different
0
1080
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 event,and then utilize the event's para to do more things. First ,I am not sure how much data can be exported by control event's para ? Second,I don't want to export large data by so many paras,such as largedataevent(para1,para2,para3,...... )
0
1018
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 resources. RtClink on the dialog and selecting Insert ActiveX control, then selecting Microsoft Datagrid from it. The data grid control is placed over the dialog. Im able to build the activeX successfully. But when I try to run it in an ActiveX...
53
4758
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, and .Net2005 code. I'm developing in vb.net 2005. This test sub just reads an input text file, writing out records to another text file, eliminating records that have a '99' in them (it is similar to a CSV file). Some of my concerns are:
1
2485
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: The thread needs a pointer to the control. "A CWnd*". It works fine without windowlessActivate flag but with the flag I have no CWnd pointer to the control. Is there a way to get a pointer to the control even though it is windowless? The control...
0
1033
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 logs are getting created in the folder where the TSTCON32.exe is located, instead of creating in the aplication folder. When i Run the application in .Net the logs will be created in the application folder itself. When i attach this (.Net...
0
9673
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10443
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10165
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10002
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9044
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5437
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5565
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3728
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.