|
-
Jul 8th, 2004, 02:03 PM
#1
Thread Starter
Frenzied Member
User Controls
Hey,
Can I use a user control created in VB.NET in VB6?
Thanks,
Don't anthropomorphize computers -- they hate it
-
Jul 9th, 2004, 10:13 AM
#2
Hyperactive Member
Yes, but the control must be created as an ActiveX component, this article will guide you through the process, it's actually pretty simple.
Write an ActiveX control in .NET
Whadayamean it doesn't work....
It works fine on my machine!

-
Jul 9th, 2004, 12:24 PM
#3
Hyperactive Member
Actually after further research, I have discovered that this is not possible. I worked with my own version and delved deeper than that article covers and could not get it to work.
Upon further research I bumped into this article:
DOTNET Archives
Sorry for that...
Whadayamean it doesn't work....
It works fine on my machine!

-
Jul 9th, 2004, 02:22 PM
#4
Thread Starter
Frenzied Member
You can check the REgister for Com Interop checkbox under build options in the properties of the project.
However, that only creates a .tlb file that can be referenced in vb 6.
I want to be able to drop the control onto a form like I can in vb.net.
Anyone?
Thanks,
Don't anthropomorphize computers -- they hate it
-
Jul 9th, 2004, 03:16 PM
#5
Sleep mode
As far as I know , .NET Controls and wrapped .NET Controls can be hosted only on Windows Forms inherited from System.Windows.Forms namespace (on .NET forms) .
-
Jul 10th, 2004, 02:42 PM
#6
Hyperactive Member
It is not possible at all, the last article I sent explains that Microsoft made the decision after beta2 not to support this functionality. Someone out there may have written a C++ library that will support what you are looking for, but it's not possible using just a .NET control and vb 6.
Whadayamean it doesn't work....
It works fine on my machine!

Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|