|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Opening...Closing FormsThe migration from VB6 is anything but easy.
Ok...I have an introductory form (start-up is via sub main) and then several succeeding forms which gather some info. As soon as the info is gathered they can be closed for good, Based on the info...I refer to a module which loads another form and possibly several others. In VB6 as soon as all the forms had been processed ... the module would send me back to my intro form. For some reason...I can't get back to this intro form...and it doesn't appear forms I thought I had closed...actually closed. I need some help... Thanks Are you using VB2005?
Robin S. ----------------------------- Show quoteHide quote "Arne Beruldsen" <ArneBeruld***@discussions.microsoft.com> wrote in message news:8B3DD2E3-153A-4019-B969-4B95A2DAB077@microsoft.com... > The migration from VB6 is anything but easy. > > Ok...I have an introductory form (start-up is via sub main) and then > several > succeeding forms which gather some info. As soon as the info is gathered > they can be closed for good, Based on the info...I refer to a module > which > loads another form and possibly several others. In VB6 as soon as all the > forms had been processed ... the module would send me back to my intro > form. > > For some reason...I can't get back to this intro form...and it doesn't > appear forms I thought I had closed...actually closed. > > I need some help... > > Thanks Yes...using vb2005
Show quoteHide quote "RobinS" wrote: > Are you using VB2005? > > Robin S. > ----------------------------- > "Arne Beruldsen" <ArneBeruld***@discussions.microsoft.com> wrote in message > news:8B3DD2E3-153A-4019-B969-4B95A2DAB077@microsoft.com... > > The migration from VB6 is anything but easy. > > > > Ok...I have an introductory form (start-up is via sub main) and then > > several > > succeeding forms which gather some info. As soon as the info is gathered > > they can be closed for good, Based on the info...I refer to a module > > which > > loads another form and possibly several others. In VB6 as soon as all the > > forms had been processed ... the module would send me back to my intro > > form. > > > > For some reason...I can't get back to this intro form...and it doesn't > > appear forms I thought I had closed...actually closed. > > > > I need some help... > > > > Thanks > > > Is the intro form still open? Or did you close it?
Instead of closing it, you can hide it by setting its [visible] property to false. Me.Visible = False Form2.Show() Or if you closed it, just re-open it. MainForm.Show() If you want to see a list of forms that are still open, try this; you can stick it in your form_load event and then look in either the Immediate window or the Output window, depending on your settings: For each myForm in My.Application.OpenForms Debug.Print myForm.Name Next I used to hide my main form because I used properties on it, then had a <Close> and an <Exit> button all the other forms. If they hit <Close>, I closed the current form and took them back one level. If they hit <Exit>, I closed all forms and exited the application. Does that help at all? Robin S. -------------------------------- Show quoteHide quote "Arne Beruldsen" <ArneBeruld***@discussions.microsoft.com> wrote in message news:59D70690-F915-496E-875F-D29566704A39@microsoft.com... > > Yes...using vb2005 > > "RobinS" wrote: > >> Are you using VB2005? >> >> Robin S. >> ----------------------------- >> "Arne Beruldsen" <ArneBeruld***@discussions.microsoft.com> wrote in >> message >> news:8B3DD2E3-153A-4019-B969-4B95A2DAB077@microsoft.com... >> > The migration from VB6 is anything but easy. >> > >> > Ok...I have an introductory form (start-up is via sub main) and then >> > several >> > succeeding forms which gather some info. As soon as the info is >> > gathered >> > they can be closed for good, Based on the info...I refer to a module >> > which >> > loads another form and possibly several others. In VB6 as soon as all >> > the >> > forms had been processed ... the module would send me back to my intro >> > form. >> > >> > For some reason...I can't get back to this intro form...and it doesn't >> > appear forms I thought I had closed...actually closed. >> > >> > I need some help... >> > >> > Thanks >> >> >>
calling math functions at run time
regarding .net help Help reading control.location value back form text file Good book for an absolute beginner on VB.net or 2005 with databases newbie: foundfile attributes? (filesize, saved date, etc.) Can someone please translate this to VB.Net need help with 1 line of code now! WIALib error My.Computer.Network.UploadFile error Allow user to rename a button control on the form |
|||||||||||||||||||||||