We need a Microsoft .NET 2.0 C# windows form solution to view files of file types registered on the system. The main form should contain a ListBox control which will be populated with a fully qualified paths to files on the system. Clicking one of these entries in the Listbox will display that file in it's native application, if the file extension of that file is registered on the system. If the extension of that file is not registered on the system, it of course will not know what application to use to display the file, so a simple message or error trapping should be provided for that case.
?
The application window displaying the selected file will remain open until the user dismisses the application. The user should be able to interact with the main form and select another file from the Listbox, and if the application for that file is already active, reuse the app and display the newly selected file, or such as in the event of a Microsoft Word document, display multiple instances of the WinWord application.
?
IMPORTANT: The fact that an application is active and displaying a file/document should not prevent the user from interacting with the main form.
?
No install project required, just full and documented source code.
?
You do not need to provide a mechanism to populate the Listbox with filenames/paths. When testing, I'll populate the Listbox via code.
?
We are trying to mimic the functionality found in Microsoft Outlook when clicking attachments of an e-mail message.