General information
Category:
Coding, syntax and commands
Environment versions
Network:
Windows 2003 Server
>Anyone done a custom openfiledialog in C# (winform)? I need to create a list of all .wav files in a specific directory (that I will set behind the scenes) and allow the user to choose one file from the list. After the user selects a file from the list, I will store the value (filename) in a textbox on a form. It's basically replacing the standard openfiledialog. I don't want the user to be able to manuever around the directory structure or path (no browsing) or have any of the buttons on the default dialog available. I cannot control the existing openfiledialog to that extent. Seems simple enough, but I keep running into problems.
Might it not be simpler to just get a list of files from DirectoryInfo.GetFiles() and put the results in a ListBox?
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only