m facing this problem even while programming in c#.
when i run the project, the first form loads and when i call the second form on the click of a button the project ends.
plz help

Recommended Answers

All 3 Replies

Post your project code so we can take a look.

Me.Close()
frmNewCompany.Show()

this the first page or the login page.
however if i write me.hide tht solves the problem

can any one explain the reason

If you go to Project -> Application and look for "Shutdown Mode:" its set by default to "When startup form closes"
You can set this to "When last forum closes" but then make sure you close all your forms instead of hiding.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.