Wrox Programmer Forums
|
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 21st, 2003, 06:22 PM
roy roy is offline
Registered User
 
Join Date: Sep 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Creating .ocx file in .net

Hi.
Is it possible to create ActiveX in .net?
The steps I took:
1.Create project of type "class library"
2.Compile it with "Register with COM interop"
3. Use Regasm to register it

Then I tried to put this "contol" on a VB form / Access form, but It is impossible.
My question:
1. Is there something I can do in VB to host such a dll?
2. Is there an option in .NET to create .OCX ?

Thanks a lot
Roy
 
Old October 22nd, 2003, 08:44 PM
roy roy is offline
Registered User
 
Join Date: Sep 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

1. Yes, create a refernce. and instantiate it in the code using CreateObject
2. No, .Net doesn't support creating .ocx


 
Old April 12th, 2005, 07:58 AM
Registered User
 
Join Date: Apr 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

We have 2 GUI based applications. One in .Net and another in C++/MFC [VS 6.0}

Is it possible to create some kind of ActiveX control from .Net application in order to use it in the MFC based application.

Thanks for the help in advance

Manish





Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding .ocx file created in VB 6.0 into Infopath g_b_mk VB.NET 2002/2003 Basics 1 December 5th, 2007 02:52 AM
need a specific .OCX file louki VB.NET 2002/2003 Basics 0 June 4th, 2006 05:36 AM
Creating an Excel File from .NET with numeric fiel neilwillby VB.NET 2 December 12th, 2005 04:19 PM
install ocx file ParadiseIsle Beginning VB 6 5 December 2nd, 2005 05:57 AM
missing .ocx file for DesignSchemes Jim Shores BOOK: Expert One-on-One Access Application Development 6 July 8th, 2004 06:50 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.