Posts: 179
Threads: 9
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Sep 2011
Reputation:
0
I have gotten this far but now a little lost.
string Chosen_File = "";
openFD.InitialDirectory = "C:";
openFD.Title = "Open a Text File";
openFD.FileName = "";
How do I change the .txt opening file to a .bin or other file?
openFD.Filter = "Bin Files|*.bin"
Posts: 313
Threads: 20
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Jul 2011
Reputation:
0
First thing Put on your title the language Tag [C++] or [C#] because it will be confusing..
On your question:
Set a filter to openfiledialog, the filter will receive a string like this "First Name | extention | second name | extention | etc..
Example:
openFD.Filter = "LOD files | *.lod | DTA fles | *.dta"