[C#]Changing opening files in C#
#1

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?

#2
openFD.Filter = "Bin Files|*.bin"

#3

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"

#4
Okay thanks and sorry about that, next time Ill make sure to add it Smile



Forum Jump:


Users browsing this thread: 1 Guest(s)