Define your FileType in the IDE using the FileType editor. Then use that when presenting the FileOpenDialog by assigning the FileType(s) to the dialog’s Filter property:
oFileOpen = New OpenFileDialog
oFileOpen.Filter = SomeFileTypeSet.SomeType
oFItem = oFileOpen.ShowModal
The easiest way is to drop a file onto the File Type Set editor.
Extensions is the extension you want to support. for example .csv
Name is your name for what you want to call that file type.
Choose the Type, Role and Rank based on your application. For example:
If it is a common file type you want to be able to import into your application then Type will be File. Role will be Edit or View and Rank will be Alternate or Default.
If you wanted to be able to drop an application on your app (or choose it via the FileOpenDialog) then Folder would be the right answer on a Mac.
Role describes the nature of your program. ie If you can view, edit a file or even execute it.
Rank gives the system your apps priority for the file type. If it is a common type you will likely be Alternate or Default. If it is for a file type that is specific to your application then you should choose Owner. You would then need to provide an icon for the file (and should tick the “file type is unique to my application” checkbox.
At a moment in a conversation,if the helper gave answers that goes to a totally different location (compared to the question), how people can answer ?
Telling thank you means to stop asking questions and stay in the dark.
What will you do in that case ?
I do not want to be a Grinch, but what can I say ?
You seems to know what I want and this is not the case. No ESP here.
Please answer to the question if you can; stay tuned.