Showing .NET forms from within VB6 project: wrong Tab key behavior

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
The main project in VB6. Our developer team started gradual moving to VB.NET project and created some .net forms. They are called from VB6. But one day we noticed ununderstandable Tab key behaviour and here is the problem.
When a .net form is shown and if the user presses Tab key the form is being deactivated and main MDI form of VB6 project is getting active. The cursor in the .net form is not moving to the next form control.
In VB6 project there is a reference to .NET library that contain some classes.
The variables of these classes are declared WithEvents and there are some code with handling these events (in VB6).
Can someone help us and explain what is happening.

Great thanks in advance.
Ivan Abramov, CSBI, TotalObjects.
 
* =?Utf-8?B?SXZhbiBBYnJhbW92?= said:
The main project in VB6. Our developer team started gradual moving to
VB.NET project and created some .net forms. They are called from
VB6. But one day we noticed ununderstandable Tab key behaviour and here
is the problem.

When a .net form is shown and if the user presses Tab key the form is
being deactivated and main MDI form of VB6 project is getting
active. The cursor in the .net form is not moving to the next form
control.

VB6 sometimes had problems with windows created by other (non-VB)
components. Are you showing the form in an MDI environment? IMO that's
not recommended.
 
Thanks, Herfried

Yes, our VB6 project is in MDI environment. The .NET form is showing when the only one MDIForm of VB6 is visible
The .NET form of cause doesn't behave like MDIChild
But there is a thing we noticed. If we show the .NET form as modal, everything is ok.
Herfried, what is IMO? You meant IMHO? I agree it's not good, we have to

Ivan Abramov
 
Back
Top