pacbob
12-28-2004, 04:16 PM
Converted a large project with multiple forms/dialogs from VB6 to VB.NET.
The forms in VB6 were called with "Formx.show" and closed with "Formx.hide".
In navigating between forms, I would simply show the next form and hide the current one. Worked great.
VB.NET did a lot of form conversion work for me but when I run the converted code the forms do not show and when the start up form is hidden, the whole app seems to shut down or else it just goes into hibernation with no messages.
To try to find the problem, I created some new forms from scratch and then copied the code into them. With some effort I was able to get the first couple of forms to work. I seem to have to use "Formx.showdialog" rather than "Formx.show" and not sure why.
Further, I tried to then use the third form as converted by .NET and the program just quietly closes and goes away when I call the third form, no matter whether I use .show or .showdialog. MS Help not very.
I can upload some of the code but there is so much going on in the "conversion" section that I am hesitant about doing that.
I'd rather not edit out all the "conversion help" I received from the converter.
Any suggestions appreciated.
:confused:
The forms in VB6 were called with "Formx.show" and closed with "Formx.hide".
In navigating between forms, I would simply show the next form and hide the current one. Worked great.
VB.NET did a lot of form conversion work for me but when I run the converted code the forms do not show and when the start up form is hidden, the whole app seems to shut down or else it just goes into hibernation with no messages.
To try to find the problem, I created some new forms from scratch and then copied the code into them. With some effort I was able to get the first couple of forms to work. I seem to have to use "Formx.showdialog" rather than "Formx.show" and not sure why.
Further, I tried to then use the third form as converted by .NET and the program just quietly closes and goes away when I call the third form, no matter whether I use .show or .showdialog. MS Help not very.
I can upload some of the code but there is so much going on in the "conversion" section that I am hesitant about doing that.
I'd rather not edit out all the "conversion help" I received from the converter.
Any suggestions appreciated.
:confused: