473,320 Members | 1,862 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Opening...Closing Forms

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
Nov 25 '06 #1
3 1632
Are you using VB2005?

Robin S.
-----------------------------
"Arne Beruldsen" <Ar***********@discussions.microsoft.comwrote in message
news:8B**********************************@microsof t.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

Nov 25 '06 #2

Yes...using vb2005

"RobinS" wrote:
Are you using VB2005?

Robin S.
-----------------------------
"Arne Beruldsen" <Ar***********@discussions.microsoft.comwrote in message
news:8B**********************************@microsof t.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


Nov 25 '06 #3
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
<Closeand an
<Exitbutton 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.
--------------------------------
"Arne Beruldsen" <Ar***********@discussions.microsoft.comwrote in message
news:59**********************************@microsof t.com...
>
Yes...using vb2005

"RobinS" wrote:
>Are you using VB2005?

Robin S.
-----------------------------
"Arne Beruldsen" <Ar***********@discussions.microsoft.comwrote in
message
news:8B**********************************@microso ft.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



Nov 26 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jean-Fran?ois Lacrampe | last post by:
Hello, I want to write a _very_ simple text parser that would replace a string like: "This is text with /italics/, *bold* and _underline_." and generate automatically something like this: ...
1
by: Eric Cadwell | last post by:
We're running Load Runner to test a large 1.0 based WinForms application. I'm getting the following exception when opening and closing a form 400 - 450 times. The form contains several controls and...
3
by: VanIkyn | last post by:
Hello peoples, This is a last resort, as I've run out of search strings I can think of for this problem. There may very well be a simple and logical solution that I have overlooked. Thanks in...
1
by: N. Graves | last post by:
Hi, I want to have a Search Dialog box that has several text box and fields to build a search and display the results in a form. I can do everything that I need to if I us a report but I would...
3
by: Greg | last post by:
On my report I want to have an opening balance signifying all transactions up to the month selected and detailed transactions for the month selected and then a closing blance. I'm perpelexed...
6
by: Lasse Eskildsen | last post by:
Hi, How can I make sure I don't show the same form twice? If the form is already shown, just focus. I tried using ownedforms, but can't quite make it work... Thanks in advance! -- Lasse
16
by: iwdu15 | last post by:
how can i open a file i saved and place the info into different text boxes?
4
by: Academic | last post by:
Does it make sense to put this If e.Cancel Then Exit Sub at the beginning of form closing events so if the user cancels the app's exiting in one Closing routine he will not be asked again by...
2
by: =?Utf-8?B?RXRoYW4gU3RyYXVzcw==?= | last post by:
I am (still) relatively new to Windows applications, most of my experience has been Web based, and I am confused about what exactly happens when the Main() method is called and how to manipulate...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.