Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi
I have a MDI application with a Main form and menu associated with that. When "Open" menu item is pressed, the application allows the user to select a file and opens the same. Once a file is opened, if the user clicks "open" again and selects a second file, I want another instance of the same application to be created and the second file to be opened. Something similar to what Microsoft Word does.

How do I implement this? Any ideas or links where I can find some information is much appreciated!

Thanks in advance
K
Posted

1 solution

Add a menu item to your File menu with the label "Open New Instance...", and when the user slects the file to be opened, spawn a new process.

I shouldn't have to say this, but if I don't someone else will...

That's a fairly bizarre requirement since an MDI app, by it's very nature, allows multiple documents to be opened within itself.
 
Share this answer
 
v4

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