Re: How to cancel pressing the Tab key?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Ivan (anonymous_at_discussions.microsoft.com)
Date: 04/30/04


Date: Fri, 30 Apr 2004 01:01:07 -0700

Rick, thanks, but I know the TabStop prop and multiple control selection.
I have to write out the problem I'm trying to solve.
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 the main MDI parent 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).

So, is there a way to cancel the Tab key with the help of API functions?



Relevant Pages

  • RE: Specifying Parent to a Windows Form Where Parent Form is in VB
    ... you want to create a .NET form via COM Interop ... But when you try to set the .NET form as a children form of a VB6 MDI form, ... I suggest you upgrade your VB6 project to VB.NET project so all the code ... Microsoft Online Community Support ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: VB6 event handler not firing when .net form shown modally
    ... and I am instantiating that form from the VB6 app. ... The .net form raises an event, which is handled in VB6, and this works ... control does not pass to the vb6 event handler. ...
    (microsoft.public.dotnet.framework.interop)
  • Quick Question
    ... I want to make the enter key function like the tab key in WinForms. ... to do it in VB6 using the code below: ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Showing .NET forms from within VB6 project: wrong Tab key behavior
    ... > The main project in VB6. ... Our developer team started gradual moving to ... But one day we noticed ununderstandable Tab key behaviour and here ... > being deactivated and main MDI form of VB6 project is getting ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Showing .NET forms from within VB6 project: wrong Tab key behavior
    ... Our developer team started gradual moving to VB.NET project and created some .net forms. ... They are called from VB6. ... 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. ...
    (microsoft.public.dotnet.framework.windowsforms)