Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Textbox for extension
Message
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Versions des environnements
OS:
Windows XP
Divers
Thread ID:
01299332
Message ID:
01299351
Vues:
11
This message has been marked as a message which has helped to the initial question of the thread.
>Hi everybody,
>
>I'd like to be able to provide a file extension (s ?) and in my code only save files with these extensions.
>
>I'm a bit confused as to what to use for these extensions textbox.
>
>Any suggestion?
>
>Thanks in advance.

Are you using the SaveFileDialog class?
If so use the Filter property. Something like this
sfd.Filter = "Image Files(*.BMP;*.JPG;*.GIF)|*.BMP;*.JPG;*.GIF|All files (*.*)|*.*";
Semper ubi sub ubi.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform