One of the constructors to the file dialog class permits you to specify a list of file extensions the dialog is permitted to show, check the documentation for more clarity, hope this helps.
The tears shed in vain and the hatred and pain will be nothing but dust at the end of the day