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

Re: problem with form1.show by David

David
Sat Jul 12 07:11:43 CDT 2003

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

David

"dennist" <dennist@zahav.net.il> wrote in message
news:01e501c3486e$4dc05a80$a001280a@phx.gbl...
> 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



Re: problem with form1.show by dennist

dennist
Sat Jul 12 07:24:22 CDT 2003

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
>-----Original Message-----
>Are you using Application.Run() to start your
application?
>
>David
>
>"dennist" <dennist@zahav.net.il> wrote in message
>news:01e501c3486e$4dc05a80$a001280a@phx.gbl...
>> 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
>
>
>.
>