I want the open dialog to filter files by *.spectrum or not filter it (*.* all files).
I also want the save dialog to suggest a .spectrum extension when saving. The common, new file.ext where the new file is highlighted for us to overwrite.
I have set the wildcard = "*.spectrum" for both options, but please give me a more complete solution.
I’ve written a couple articles on this subject:
Basically what you want for the open and save dialogs is something like this:
Then in the code, you’d do something like this:
Note: Code taken directly from my blog and only modified slightly.