Form loads then unloads

P

Pete

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.
 
A

Armin Zingler

Pete said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top