Using VB.NET Treeview control in VB6
Posted on 2003-11-19
I need to use the VB.NET Treeview control in a VB6 application because the VB.NET Treeview control seems to be much faster the the VB6 one with a large amount of data. My question is how to do it.
I read some articles about interop between .Net and VB6 and tried to subclass from System.Windows.Forms.TreeView in .Net and build either a COM class or User Control, and add the tlb file into VB6 Project References, and use a New to create a VB.Net treeview in VB6. It didn't work when I call the New. Is this approach ever going to work? I don't know if you can add a control on a VB form by calling New. I can't find a way to add the VB.Net tlb into Vb6 Project Componets. Is this even possible??
If someone has done it before or know how, please share your thoughts.
Thanks a lot!