I would like to implement an open file dialog or file browser that additionally offers a “Preview” button to play the currently selected sound file (wave format in particular, other formats are not necessary for this application).
- I could create my own form with various controls such as a treeview and listbox to show the folders and files, but I think I would be reinventing the wheel, or if nothing else going to a lot of work for something very simple. Do you recommend doing this?
- Can I modify (inherit) the existing OpenFileDialog and add the sound-playing button to it somehow?
- Is there some free library of custom file pickers that could be utilized? (Provided that the license allows inclusion in a commercial sense.)
Regarding point 2, I had thought the OpenFileDialog (or SaveFileDialog) weren’t extendable in any way – they are provided by the OS.
But, it turns out they could be:
The first one looks like what you’re wanting to achieve.
Good luck.