473,503 Members | 1,888 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 1078
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.com

"Sammut" <sa*****@hotmail.com> wrote in message
news:%2****************@tk2msftngp13.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.com> wrote in
news:uu*************@TK2MSFTNGP10.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.com

"Sammut" <sa*****@hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...



Nov 16 '05 #3

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

Similar topics

12
2157
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:...
1
1085
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...
8
16690
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
1893
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...
2
1977
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...
4
2795
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...
14
5155
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...
0
860
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...
5
8072
by: asdasd10 | last post by:
It is possible create Seasson variable (ASP) through VBscript?
1
14286
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...
0
7348
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...
1
7006
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
5592
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,...
1
5021
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...
0
4685
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...
0
3175
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...
0
3166
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1519
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 ...
0
397
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...

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.