Form.Show() is executes its code and then exits the system

May 14 2010 3:45 AM
Hi All,

I have just converting my VB6 project to VB.NET 2008.

I have set up start with Model.  It start with Main() sub
in Main sub I have declare as blow

Dim frm as new Formpwd
frm.show()

In formpwd I have UserId, PWD as test box and Two command buttons.

The system executes form_load code and then PWD and UserId_Gotfoucus handler and then closes the system.

Why is not waiting to accept UserId and PWD?

I'm looking forward seeing all response.

Thank all.

Reg, PB