HELP! Tabbing not working in vb6 forms called from .NET

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ryanmiller
    New Member
    • Mar 2007
    • 2

    HELP! Tabbing not working in vb6 forms called from .NET

    I've got a vb6 dll i reference in my .net app which contains forms that i need to load now and again. The problem i origianlly had was that i couldn't show these forms the old way (aForm.Show). I kept getting an error stating that modeless forms could not be loaded. Using "aForm.Show vbModal" gets rid of the error, but then doesn't allow the user to get back to the main application till they close the window. So, I had to load the forms by using the API Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long. This worked, but somehow screwed up the users ability to tab through the controls on the form. I set up a function via the form.keydown event that determines if it is the Tab key and if so then sets the next control active. Then .net 2.0 came along and now pressing the Tab key doesn't even fire the from.keydown event, so now my function never gets called. Ugh! A simple form with some controls on it works, but if any of those controls are inside a frame they're ignored completely. Any help is greatly appreciated!
  • computerenigma13
    New Member
    • Mar 2007
    • 36

    #2
    You might need to transferrer everything to .net and then do it there

    Comment

    • ryanmiller
      New Member
      • Mar 2007
      • 2

      #3
      Oi Vey! I'll let you make that suggestion to the powers that be ;) This legacy code is very extensive and although i'm all for updating it, the time and energy would be significant. Not to mention all the testing and bug fixing that would follow. I'm afraid I'm stuck with it for the time being. Any other suggestions?

      Comment

      • computerenigma13
        New Member
        • Mar 2007
        • 36

        #4
        its hard to get something written in vb6 to work on vb.net or you go code it all in vb6 its up to you but i would rather code in vb6

        Comment

        Working...