Guest nitz Posted October 9, 2002 Posted October 9, 2002 HI ALL I have built a Active-X user control in vb6 that is extending the functionality of the listview control. I am using its ocx file in Access 2002. I now want to build this usercontrol with vb.net and use it in Access 2002. I am trying to create new window control library project in vb.net, I hope it is the right way. I have 2 Questions: 1. Why does window control library Projects in VB .NET are Complied to .dll I want to compile it as .ocx and use it in access. 2. I can not add the .dll the toolbox components in access 2002 nor vb6. Is there a way to use this control in a form by adding the dll to the references collection? Quote
*Gurus* divil Posted October 10, 2002 *Gurus* Posted October 10, 2002 Nope. You won't be hosting a Windows Forms Control in an ActiveX environment. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
*Gurus* Derek Stone Posted October 10, 2002 *Gurus* Posted October 10, 2002 Divil's quite correct (he usually is). While you can create CCWs for .NET DLLs, an ActiveX control environment such as the VB6 IDE isn't going to recognize the .NET-generated user control classes. Quote Posting Guidelines
Guest nitz Posted October 10, 2002 Posted October 10, 2002 bottom line... I have WindowsControlLibrary1.dll can I use it in vb6 or access? Quote
*Gurus* divil Posted October 10, 2002 *Gurus* Posted October 10, 2002 No. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.