473,654 Members | 3,042 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using Windows Forms Controls as ActiveX controls

Hi

I have created a couple of Windows Forms controls in C# either by
composition or by subclassing existing controls. I'm able to use these
controls as ActiveX controls by using "register for COM Interop". I then
access the control in a old application written in C++ (using VS 205). This
works fine!

What if I wish to use a standard control, e.g. TreeView, as an ActiveX
control? I can of course subclass the control, without changing the
behaviour, but surely there must exist an easier way?!?!

Are the Windows Forms Controls already exposed as standard AxtiveX controls?

Are there any tricks or examples on how to handle events?

Oct 15 '07 #1
2 1600
Lars,

Probably is this page giving you the answers on your question.

http://msdn.microsoft.com/msdnmag/is...h/default.aspx

Cor
Oct 16 '07 #2
"Cor Ligthert[MVP]" wrote:
Lars,

Probably is this page giving you the answers on your question.

http://msdn.microsoft.com/msdnmag/is...h/default.aspx
No, it didn't answer my question, but it is still useful information to me.
Thanks!

Oct 18 '07 #3

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

Similar topics

4
1542
by: Bill Zack | last post by:
I realize that IE now hosts the Common Language Runtime and that you can host Windows Forms controls in IE6 the way you can host ActiveX controls and Java applets. I originally got excited thinking that I could write my IE scripts in C# and avoid the use of JavaScript. Then sanity struck, and I realized that you would need far more than just the CLR for that to happen. Nevertheless I am wondering if I could not achieve much of the same...
1
4163
by: Norman Fritag | last post by:
Hi there I have avoided to use active x controls because I thought they are causing more problems then they are doing any good. I a new application I would want to use the tree and list view control in access 2002. Prior to that I like to fine some information or here some feed back from developers who have use active x controls success fully in there application, what their experience was.
5
4024
by: David Conorozzo | last post by:
I am able to create new sources using CreateEventSource. I can call GetEventLogs, I can delete sources, I can see if sources exist BUT, as soon as I try a "WriteEntry", I get an exception: {System.InvalidOperationException} : {System.InvalidOperationException} HelpLink: Nothing InnerException: {System.ComponentModel.Win32Exception}
1
1477
by: Sriram Venkataramani | last post by:
In our application we have to authenticate users using Forms authentication, but using the username and password of the Windows 2000 Active Directories. That is, the user will enter his username and password in the WebForm and our code behind will have to authenticate the user. Futhermore the user can be from any domain in the network. Also, while authenticating the user, the user has to be displayed the list of domains available on the...
3
22845
by: EJ1003 | last post by:
Hello I would like to create Activex Control uisng C# and use it in ASP.Net webform. User Control is not solving my requirement so I am going for Activex Control. Please guide me on this, how to do it, if any sample is provided will be of great help Thanks EJ
1
1319
by: Mombiatch | last post by:
I've got an application whereby I need to make calls to a .NET Class Library in the same way that I would make calls to an ActiveX control from a webpage, using the <object id="CLSID, etc tag. Is there a better way to do this than wrapping the .NET Class Library into an ActiveX Control? Thanks Joe
3
5327
by: Rob | last post by:
Hi all, I am having trouble converting the code below (found on http://vbnet.mvps.org/index.html?code/core/sendmessage.htm) into a format that will work using vb .NET. Can anyone have a look at it and let me know what I need to change. I have tried changing the "hwnd" type into intptr's but there seem to be other problems too, like it won't allow "lParam As Any" to be declared.
7
4391
by: Jarod_24 | last post by:
I just downloaded a activex control that was written in C# and tried to view it on my PDA's Internet Explorer. At my regular PC it displayed just fine, but nothing showed up on the pda. Do ActiveX controls that are to be used by a pda need to be written in the ..net compact framework, or am i missing something else here? i have a HP iPaq 2490 with Windows Mobile Premium installed While i'm at it; does a activex control allow you to...
4
1575
by: Brad Coble | last post by:
I have an activex control that is used in an old app originally written in VB6. It works good. I updated the VB6 app to VB.net. Got it working, sort of. The activex control uses withevents and fires an event when there is incoming message traffic. I need to capture that data. The event fires sometimes. I know it should be firing more often because i run the vb6 app and watch the traffic. When I look at the debuger output I see a lot...
0
8375
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
8815
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...
0
8707
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8593
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
7306
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...
1
6161
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4294
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1916
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1593
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.