Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Custom OpenFile Dialog in C#
Message
De
24/09/2009 10:56:35
 
 
À
24/09/2009 09:56:29
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01425918
Message ID:
01425940
Vues:
39
>>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?

Duh, yeah :o) Don't know what I was thinking (actually I obviously wasn't) :o)
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform