Interesting problem!! its urgent!!!

S

sunnyz

Hi
I've a windows application in C#.At a particular point , i have four
clones of the same form running and i want that application should
not end till all the forms are closed.
The problem is the first form that runs when its closed closes all
other forms and the application.
plz help me its really urgent!!!
 
R

Richard Blewett [DevelopMentor]

Use Application.Run() in your Main not Application.Run(myForm);

Then the application will only exit when you call Application.Exit somewhere.

Regards

Richard Blewett - DevelopMentor
http://staff.develop.com/richardb/weblog

nntp://news.microsoft.com/microsoft.public.dotnet.framework/<[email protected]>

Hi
I've a windows application in C#.At a particular point , i have four
clones of the same form running and i want that application should
not end till all the forms are closed.
The problem is the first form that runs when its closed closes all
other forms and the application.
plz help me its really urgent!!!


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.769 / Virus Database: 516 - Release Date: 24/09/2004



[microsoft.public.dotnet.framework]
 

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