HELP! .Net user control in a VB6 app requires double-click to activate

H

holysmokes99

I have a VB6 Winform application that has a .Net 2.0 user control
(exposed via COM Callable Wrapper) that I made. No matter what I have
tried, once the
user control looses focus, it always requires a double-click to regain
focus. My control is located on a tab of a Microsoft VB6 Tab control.
So whenever I go
to another tab, and return to the tab with the user control, I must
double-click the control to give it focus. I have tried giving it focus
in code, passing a double-click event to the control, tried using the
3rd-party SStab control for the tab functionality, but it all has no
effect.

A friend was just telling me something about Microsoft changing the way
Active-X controls were activated in websites now due to some lawsuit,
something about needing to double-click on them. Could this have
ANYTHING to do with it? As I said, I am using the 2.0 framework.

Thanks for any suggetsions,
Marcus
 
H

Herfried K. Wagner [MVP]

I have a VB6 Winform application that has a .Net 2.0 user control
(exposed via COM Callable Wrapper) that I made. No matter what I have
tried, once the
user control looses focus, it always requires a double-click to regain
focus. My control is located on a tab of a Microsoft VB6 Tab control.

The problem is that VB6 forms are not supported as a host for .NET Windows
Forms controls.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top