
Hosting VB.NET controls/forms in a vb6 app
Quote:
>>Did you try adding it to the toolbox (right-click, "Components...")?
Yes, it does not appear in the components list, and you can't browse the
NET.dll and select it. You can add a reference to the .tlb file but this
does not put it in the toolbox. After contacting the author of the
article
http://www.codeproject.com/netcomponents/exposingdotnetcontrols.asp#xx13
0683xx 'Morgan Skinner' who said:
"As for showing up in the toolbox in VB, you have to add a bunch of
other stuff into the registry, but I've never successfully got this to
work. You need at least a TypeLib entry, and a few others too. Best
thing to try is to create a VB control, hunt down all of the registry
stuff set by it, and attempt the same in your controls registration
code. Let me know if you get this to work successfully.
As for the tabbing stuff, I didn't spend too much time on it, so I can't
really help with that one."
I have found that from vb6, if you simply reference a .net .tlb file,
and then (in vb6 code) show a .net form then it is not possible to tab
around the .net form's controls at all! The .net buttons seem to get a
shadow when you click on them, but they never get a focus
(dotted)rectangle.
Quote:
>>>Hmm... Have you tried doing a "debug.print me.ActiveControl.Name" to
see where the focus is?
Yes, vb6 always thinks that the the active control is the .net
'Prisoner' control.
Regards
Anton
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!