How to select the File (help me)
-
I want to select the file and i want to get the path of the file like(browsefile dialog,savefiledialog,openfiledialog)i can`t use the above dialogs because i just want to select the file and getting path. (ex:openfiledialog ->browser window we have option "open"->i don`t need this option i want like "select" option (and i want to select the file not the folder) how can i do this in c#.. help me:doh: madhu
-
I want to select the file and i want to get the path of the file like(browsefile dialog,savefiledialog,openfiledialog)i can`t use the above dialogs because i just want to select the file and getting path. (ex:openfiledialog ->browser window we have option "open"->i don`t need this option i want like "select" option (and i want to select the file not the folder) how can i do this in c#.. help me:doh: madhu
madhugurukul wrote:
can`t use the above dialogs because i just want to select the file and getting path.
Say what ? Why can't you use those ? They do exactly what you want, select the file and tell you the path. Just use the SelectedFile property, or whatever it is. Just because there's an open method, doesn't mean you need to use it ( I never have )
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
madhugurukul wrote:
can`t use the above dialogs because i just want to select the file and getting path.
Say what ? Why can't you use those ? They do exactly what you want, select the file and tell you the path. Just use the SelectedFile property, or whatever it is. Just because there's an open method, doesn't mean you need to use it ( I never have )
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
i cant use those property because in that dialog (ie openfile or savefile..) when it show it is going to have the option like "open" or "save" but i dont want to open the file or save the file ok i just want to select the file suppose if i use openfiledialog then user will clik "open" option user will feel that the file is opened but i dont want to open the file i just asking is there any info about fileselect dialog -- modified at 4:27 Thursday 15th November, 2007
-
i cant use those property because in that dialog (ie openfile or savefile..) when it show it is going to have the option like "open" or "save" but i dont want to open the file or save the file ok i just want to select the file suppose if i use openfiledialog then user will clik "open" option user will feel that the file is opened but i dont want to open the file i just asking is there any info about fileselect dialog -- modified at 4:27 Thursday 15th November, 2007
FileInfo o = new FileInfo("c:\\file.dat"); // o.Name // o.FullName // o.Extension // o.Extension // o.DirectoryName Does this help ??
Wisdom is often meant as the ability and desire to make choices that can gain approval in a long-term examination by many people.
-
i cant use those property because in that dialog (ie openfile or savefile..) when it show it is going to have the option like "open" or "save" but i dont want to open the file or save the file ok i just want to select the file suppose if i use openfiledialog then user will clik "open" option user will feel that the file is opened but i dont want to open the file i just asking is there any info about fileselect dialog -- modified at 4:27 Thursday 15th November, 2007
This is bizarre. How will your file dialog differ ?
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )