Click here to Skip to main content
15,918,808 members
Home / Discussions / C#
   

C#

 
QuestionCan I Get File Extension(openfiledialog) Pin
chanzeb10-Oct-07 20:17
chanzeb10-Oct-07 20:17 
AnswerRe: Can I Get File Extension(openfiledialog) Pin
Giorgi Dalakishvili10-Oct-07 20:19
mentorGiorgi Dalakishvili10-Oct-07 20:19 
Have a look at the Path class. It has methods that allow to manipulate with the string that represents a file path. You can retrieve the name of the file chosen through the openfiledialog by its filename property.

If you want to allow the user to open only specified types of file using openfiledialog then use the Filter property of openfiledialog class.


#region signature
my articles
#endregion

GeneralRe: Can I Get File Extension(openfiledialog) Pin
aswini10-Oct-07 20:23
aswini10-Oct-07 20:23 
GeneralRe: Can I Get File Extension(openfiledialog) Pin
Giorgi Dalakishvili10-Oct-07 20:25
mentorGiorgi Dalakishvili10-Oct-07 20:25 
AnswerRe: Can I Get File Extension(openfiledialog) Pin
Spunky Coder10-Oct-07 20:36
Spunky Coder10-Oct-07 20:36 
Questionmsdn and visual studio.net 2005 Pin
tieuquai198710-Oct-07 20:13
tieuquai198710-Oct-07 20:13 
AnswerRe: msdn and visual studio.net 2005 Pin
TJoe11-Oct-07 3:04
TJoe11-Oct-07 3:04 
QuestionWPF Database connection acrchitecture Pin
Alan Boldock10-Oct-07 19:54
Alan Boldock10-Oct-07 19:54 
Questionto read the file name help me plz..... Pin
P_Elza10-Oct-07 19:19
P_Elza10-Oct-07 19:19 
AnswerRe: to read the file name help me plz..... Pin
Charith Jayasundara10-Oct-07 19:30
Charith Jayasundara10-Oct-07 19:30 
AnswerRe: to read the file name help me plz..... Pin
aswini10-Oct-07 20:26
aswini10-Oct-07 20:26 
GeneralRe: to read the file name help me plz..... Pin
aswini10-Oct-07 20:26
aswini10-Oct-07 20:26 
QuestionRestrict to create the temp files Pin
Pankaj Saha10-Oct-07 18:41
Pankaj Saha10-Oct-07 18:41 
AnswerRe: Restrict to create the temp files Pin
Yitzchok Dev10-Oct-07 19:45
Yitzchok Dev10-Oct-07 19:45 
AnswerRe: Restrict to create the temp files Pin
I.explore.code10-Oct-07 19:48
I.explore.code10-Oct-07 19:48 
GeneralRe: Restrict to create the temp files Pin
Pankaj Saha10-Oct-07 20:31
Pankaj Saha10-Oct-07 20:31 
Questioncontext menue Pin
Tauseef A10-Oct-07 18:16
Tauseef A10-Oct-07 18:16 
QuestionError in Message Queue Pin
M. J. Jaya Chitra10-Oct-07 18:02
M. J. Jaya Chitra10-Oct-07 18:02 
Question5 objects of that class Pin
dews turner10-Oct-07 17:20
dews turner10-Oct-07 17:20 
AnswerRe: 5 objects of that class Pin
Ravi Bhavnani10-Oct-07 17:36
professionalRavi Bhavnani10-Oct-07 17:36 
GeneralRe: 5 objects of that class Pin
dews turner10-Oct-07 20:45
dews turner10-Oct-07 20:45 
GeneralRe: 5 objects of that class Pin
Malcolm Smart10-Oct-07 21:46
Malcolm Smart10-Oct-07 21:46 
QuestionHow to convert/read c++ code from c#? Pin
zaiyatul hijah10-Oct-07 16:44
zaiyatul hijah10-Oct-07 16:44 
AnswerRe: How to convert/read c++ code from c#? Pin
Paul Conrad12-Oct-07 13:35
professionalPaul Conrad12-Oct-07 13:35 
QuestionI need a file viewr please Pin
hom.rcp10-Oct-07 14:52
hom.rcp10-Oct-07 14:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.