473,700 Members | 2,350 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Opening...Closi ng 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...actual ly closed.

I need some help...

Thanks
Nov 25 '06 #1
3 1663
Are you using VB2005?

Robin S.
-----------------------------
"Arne Beruldsen" <Ar***********@ discussions.mic rosoft.comwrote in message
news:8B******** *************** ***********@mic rosoft.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...actual ly 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.mic rosoft.comwrote in message
news:8B******** *************** ***********@mic rosoft.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...actual ly 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.mic rosoft.comwrote in message
news:59******** *************** ***********@mic rosoft.com...
>
Yes...using vb2005

"RobinS" wrote:
>Are you using VB2005?

Robin S.
-----------------------------
"Arne Beruldsen" <Ar***********@ discussions.mic rosoft.comwrote in
message
news:8B******* *************** ************@mi crosoft.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...actual ly 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
3942
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: "This is text with <i>italics</i>, <b>bold</b> and <span
1
3355
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 custom UserControls. All the code is native C#. I'm not making an explicit call to ToBitmap or DrawIcon in my code. Can anyone help? Exception Caught in Main(): at System.Drawing.Graphics.GetHdc()
3
4195
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 advance for any help... I have created a simple database that greets the user with user forms to make for user-friendly practicality. From these forms, all
1
2098
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 like to have the search from data displayed in a form. The structure that I have for this was take from the Asset Manger from MS. Anyway I open a report that in turn opens up a search form that allow me to select data. Then you continue by...
3
10585
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 how to do this Anyone knows how the banks do it with statement formatting? suggestions, ideas welcome.
6
7351
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
2202
by: iwdu15 | last post by:
how can i open a file i saved and place the info into different text boxes?
4
3004
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 another when its form Closing routine is run? I guess what I'm asking is will that work. If one form sets e.cancelled to true will e.cancel be true when the next form receives a closing event?
2
4229
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 forms opening & closing. An example of this issue is as follows. I have a logon form open as the first thing. The main functional form opens when a user has successfully logged on. From the main form, a user should be able to logout which will...
0
8725
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9214
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9074
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8970
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6560
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4403
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4656
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2392
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2027
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.