473,657 Members | 2,801 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Is it possible to create an OCX & how?


Nov 16 '05 #1
2 1086
Sammut,

No, it is not. Controls in .NET can not be exported as ActiveX
controls. Chris Sells has a workaround, but it is extremely unsupported.
You can find it here:

http://www.ondotnet.com/pub/a/dotnet...mshosting.html

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Sammut" <sa*****@hotmai l.com> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..


Nov 16 '05 #2
AFAIK it (the workaround you mentioned) is supported for IE and MFC
containers:
http://msdn.microsoft.com/msdnmag/is.../WindowsForms/
Quote:
"While neither Visual Basic 6.0 nor ATL is officially supported in version
1.1 either, the Windows Forms team did a full test cycle on hosting Windows
Forms controls as COM controls in MFC 7.1-the version of MFC that comes with
Visual Studio .NET 2003-and it is now an officially supported unmanaged
host."

I guess manually implementing the COM interfaces neccessary for an ActiveX
control is possible, too; But that's probably more work than porting the
client to .net.

Niki

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om> wrote in
news:uu******** *****@TK2MSFTNG P10.phx.gbl...
Sammut,

No, it is not. Controls in .NET can not be exported as ActiveX
controls. Chris Sells has a workaround, but it is extremely unsupported.
You can find it here:

http://www.ondotnet.com/pub/a/dotnet...mshosting.html

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Sammut" <sa*****@hotmai l.com> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..



Nov 16 '05 #3

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

Similar topics

12
2171
by: adrianca | last post by:
Hi All, If have a sql table with 2 columns and 2 rows with values ,]. Using t-SQL with "for xml" How can i create a xml where the cell values (not column names) appear as elements? eg: <col1row1>col2row1</col1row1> <col1row2>col2row2</col1row2>
1
1097
by: Mac via DotNetMonster.com | last post by:
Hi all, I have a datagrid on a form which is not populated until the user enters selection criteria and clicks a button. Rather than have a blank datagrid when the form is displayed, I would like to have the columns headings that are to be displayed actually there. Is this possible? I know how to create a DataGridStyle programatically and add columns, so I added this chunk of code to the "page_load" event and nothing happened. Am I on...
8
16707
by: tranky | last post by:
i hope you can help me! It's possible create a moveable panel in vb.net? Click with mouse over it and move it everywhere!?!? It's possible? thank u!
1
1898
by: riyaz | last post by:
i am new to .net environment, anyone can advise me how to create a crystal report ,how to connect to databse and to display in web page .As i m developing asp.net based web application i want to put the report in web. plz adcise me regards
2
1993
by: Jeff | last post by:
Hey I'm wondering if it is possible create OpenGL applications using C#, or is this only possible for vc++?? I quess if this should be possible in C# then C# must have a managned OpenGL SDK installed?? Any suggestions?? Jeff
4
2804
by: hastha23 | last post by:
Dear friends, My oracle version is 10 G. I have a table vactype,this table contains vac id column have null values. i want to create an index in vac id column is possible create index in null column? Any body help me. Expecting ur replies..
14
5179
RMWChaos
by: RMWChaos | last post by:
Firebug is reporting "too much recursion" when I attempt to create a child element in a parent that doesn't exist yet. The script should automatically create the missing parent before going on to create the child element. At the point where the script is supposed to call itself with the new properties to create the parent, it gives me the error and looks like it's looping the function continuously. It seems that "id : attrib" (line 192) is...
0
867
by: grbgooglefan | last post by:
I have embedded Python in my C++ application & creating Python function from the expression. I am then evaluating those Python compiled function (byte code) using PyObject_CallObject. I want to create a Python module which will have functions called by my user defined functions from the embedded Python interpreter. What will be best approach in this case? Should I be creating normal .py modules or .so modules (python extended with C...
5
8089
by: asdasd10 | last post by:
It is possible create Seasson variable (ASP) through VBscript?
1
14300
by: Eran Hefer | last post by:
With SharePoint timer jobs you can create & execute processes on a daily / hourly / minutely basis. After deployment, the timer job definition executes your custom code. The easiest (and more common) way to deploy a timer job is by feature. When the feature is being activated, a custom code on the "FeatureActivated" method should install the timer job. This is a complete example of how to create and deploy a timer job definition. ...
0
8403
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
8833
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
8509
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
8610
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...
1
6174
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
5636
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4327
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2735
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
1967
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.