Lauching a form from another form

C

c_shah

Windows form application

I have an accounting application, the main form of that application can
be launched from other application passing the account number or it
can be started
as a standalone application. If it is started as a standalone
application It shoud prompt a dialog box asking for account number.
if the account number is valid it will launch a main form passing the
account number

I currently have a Sub Main(ByVal Args() As String) and I am passing
command line arguments it it is open from the other application

And no argument is passed I open up account number form but the thing
is as soon as I close the account number form it closes my entire
application.

any solution?
 
G

Guest

fortunatly if your using 2005, theres a simple solution, in your project
properties theres an option of Exit Application When...and you can select
When First Form Closes or When last Form Closes....so pick when last form
closes.

if your using 2003....well i never quite took the time to figure out how to
stop that from happening....
 

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