Lauching a form from another form

  • Thread starter Thread starter c_shah
  • Start date Start date
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?
 
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....
 
Back
Top