Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Custom OpenFile Dialog in C#
Message
From
24/09/2009 09:56:29
 
 
To
24/09/2009 09:43:31
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01425918
Message ID:
01425923
Views:
35
>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
Map
View

Click here to load this message in the networking platform