Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Textbox for extension
Message
General information
Forum:
ASP.NET
Category:
Forms
Environment versions
OS:
Windows XP
Miscellaneous
Thread ID:
01299332
Message ID:
01299351
Views:
10
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform