problem with form1.show

  • Thread starter Thread starter dennist
  • Start date Start date
D

dennist

If I use the command form1.showdialog() the form appears
and stays on the screen.

However, if I use form1.show() it appears then
immediately closes. I've spent two hours pulling my hair
out on this one, thumbing through 3 vb.net books.

For now I'm using showdialog, but I need the 'real thing'.

Thanks in advance.

dennist
 
Are you using Application.Run() to start your application?

David
 
No, I'm not. I'm starting off with modPrimary, which
includes public sub main.

However, I just changed the causes validation property to
false on the btnClose and that solved the problem. Hmm,
anybody know why?

dennist
 

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

Back
Top