Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
If in an MDI application I am having multiple forms and wanna run multiple child forms at same time asynchronously using multi-threading then, is it important to have distinct object names and variable name as all forms are using member of same classes.

please help
Posted

No it is not needed as each form/class has it's own state and data within it.
 
Share this answer
 
Comments
djrocks0101 27-Aug-12 6:33am    
Thanks Mehdi Gholam :)
I wanna know one more thing, Is there any other way to run multiple forms asynchronously?
Mehdi Gholam 27-Aug-12 6:43am    
Use Show() instead of ShowDialog() and each form will run independently.
You probably start your lenthy operation in a separeate worker thread (e.g. using a background worker). Then show your form using ShowDialog() and on completion of the thread close the dialog you are showing.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900