473,473 Members | 2,179 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Form loads then unloads

Hello there,
I have a menu form with two other forms and a sub menu
form leading to 3 reports.1 a dbgrid and 2 a data reports.
Iam using frmMyForm.Show to open each form via a button on
the Main Menu. The form is closed using a button with
MyForm.Hide on that form - I have used MyForm.Show
vbModal to open the forms and Unload.me to close the forms
however I found that the dbgrid would not open and show
while there was a form open in Modal - hence the change.
An intermittent problem is occurring now - sometimes when
I click the button to open a form, that form opens and
then closes. when this occurs all the forms act in the
same way. Any help would be much appreciated thanks.
Nov 20 '05 #1
1 965
"Pete" <pe**@pwom.freeserve.co.uk> schrieb
Hello there,
I have a menu form with two other forms and a sub menu
form leading to 3 reports.1 a dbgrid and 2 a data reports.
Iam using frmMyForm.Show to open each form via a button on
the Main Menu. The form is closed using a button with
MyForm.Hide on that form - I have used MyForm.Show
vbModal to open the forms and Unload.me to close the forms
however I found that the dbgrid would not open and show
while there was a form open in Modal - hence the change.
An intermittent problem is occurring now - sometimes when
I click the button to open a form, that form opens and
then closes. when this occurs all the forms act in the
same way. Any help would be much appreciated thanks.


Looks like you are not using VB.NET, but this is a VB.NET group (dotnet; see
group name). Older versions are handled at one of the microsoft.public.vb.*
groups.
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #2

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

Similar topics

1
by: bill | last post by:
Vb.net I have 2 windows forms One is used as the splash screen I have the timer set to 5000 and enabled I want the first screen to close and open a second form the splash screen closes and...
3
by: Darren Murdoch | last post by:
Gedday, I have a program where users click on a Add Seeker option from the main menu and then another form is opened and the users enter data and then it adds it all to a dbase which works fine...
4
by: Kyralessa | last post by:
In Access 2000, I have a base form with a ListBox of conference registrants. In the form's declarations section I include Dim f as Form To add a registrant I'm doing this: Set f = New...
1
by: Tony | last post by:
Hi VB.Net Gurus. Initial MDI Child form loads fine. exp. Dim objChild2 As New Form2() objChild2.MdiParent = Me objChild2.Show() MDI Child unloads just fine. Exp.
1
by: Jonesgj | last post by:
Hi, 1. What I have is a form which does something. It is a child form within an MDI app. What I would like it to do is update the text in the status panel of the parent form. I thought this...
0
by: John Doe | last post by:
Hi, Hopefully someone can help me on this one. I normally start all my VB apps from a Sub Main, which I place in a code module. This Sub then instantiates a form, i.e Public Sub Main() Dim...
5
by: BD | last post by:
I am coding with C# in Visual Studio 2005 for a database application residing on remote MS SQL Server 2005. What I want to do is open the same form but from 2 different places and only one...
7
by: peridian | last post by:
Hello, This may seem really stupid, but what's the best way to return data from a Modal form?? It seems that Access uses a different Forms library to the other MS apps, and does not have the...
0
vdraceil
by: vdraceil | last post by:
Hi,i use VB6.0..is it possible to prevent a form from unloading ever? I know to set cancel=true in query unload event of the form..but this applies only to limited cases. If my exe is closed from...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
1
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.