Click here to Skip to main content
15,921,716 members
Home / Discussions / C#
   

C#

 
GeneralRe: Bug in the "float.Parse" method Pin
Gareth H23-Apr-08 3:35
Gareth H23-Apr-08 3:35 
GeneralRe: Bug in the "float.Parse" method Pin
CPallini23-Apr-08 9:46
mveCPallini23-Apr-08 9:46 
QuestionHow to clear Exception Object Pin
pekhaleyogesh23-Apr-08 2:13
pekhaleyogesh23-Apr-08 2:13 
AnswerRe: How to clear Exception Object Pin
darkelv23-Apr-08 2:17
darkelv23-Apr-08 2:17 
AnswerRe: How to clear Exception Object Pin
J a a n s23-Apr-08 2:23
professionalJ a a n s23-Apr-08 2:23 
AnswerRe: How to clear Exception Object Pin
Spunky Coder23-Apr-08 2:26
Spunky Coder23-Apr-08 2:26 
AnswerRe: How to clear Exception Object Pin
Pete O'Hanlon23-Apr-08 2:32
mvePete O'Hanlon23-Apr-08 2:32 
AnswerRe: How to clear Exception Object Pin
Le centriste23-Apr-08 6:36
Le centriste23-Apr-08 6:36 
QuestionHow to set new location for a icon in desktop ? Pin
NgocSang23-Apr-08 1:39
NgocSang23-Apr-08 1:39 
GeneralRe: How to set new location for a icon in desktop ? Pin
Spunky Coder23-Apr-08 2:06
Spunky Coder23-Apr-08 2:06 
GeneralRe: How to set new location for a icon in desktop ? Pin
NgocSang23-Apr-08 2:25
NgocSang23-Apr-08 2:25 
GeneralRe: How to set new location for a icon in desktop ? Pin
Spunky Coder23-Apr-08 2:30
Spunky Coder23-Apr-08 2:30 
GeneralRe: How to set new location for a icon in desktop ? Pin
NgocSang23-Apr-08 2:47
NgocSang23-Apr-08 2:47 
GeneralRe: How to set new location for a icon in desktop ? Pin
Anthony Mushrow23-Apr-08 4:26
professionalAnthony Mushrow23-Apr-08 4:26 
GeneralRe: How to set new location for a icon in desktop ? Pin
NgocSang24-Apr-08 4:45
NgocSang24-Apr-08 4:45 
QuestionKnowing the contents of a file.. Pin
ptr2void23-Apr-08 1:09
ptr2void23-Apr-08 1:09 
GeneralRe: Knowing the contents of a file.. Pin
Christian Graus23-Apr-08 1:15
protectorChristian Graus23-Apr-08 1:15 
GeneralRe: Knowing the contents of a file.. Pin
ptr2void23-Apr-08 1:39
ptr2void23-Apr-08 1:39 
GeneralRe: Knowing the contents of a file.. Pin
J4amieC23-Apr-08 1:54
J4amieC23-Apr-08 1:54 
GeneralRe: Knowing the contents of a file.. Pin
ptr2void23-Apr-08 2:32
ptr2void23-Apr-08 2:32 
GeneralRe: Knowing the contents of a file.. Pin
J4amieC23-Apr-08 3:11
J4amieC23-Apr-08 3:11 
GeneralRe: Knowing the contents of a file.. Pin
carbon_golem23-Apr-08 3:17
carbon_golem23-Apr-08 3:17 
GeneralRe: Knowing the contents of a file.. Pin
Marek Grzenkowicz23-Apr-08 1:56
Marek Grzenkowicz23-Apr-08 1:56 
GeneralRe: Knowing the contents of a file.. Pin
Jordanwb23-Apr-08 10:36
Jordanwb23-Apr-08 10:36 
GeneralLocalized paths and FolderBrowserDialog Pin
Hugo Migneron23-Apr-08 1:01
Hugo Migneron23-Apr-08 1:01 
Hi,

I am using a FolderBrowserDialog to get the user to select a path. I then display the selected path in a text box using the FolderBrowserDialog.SelectedPath property. It works well with anything that's not a non-english version of Vista.

On an Italian version of Vista, for example, the FolderBrowserDialog will display the localized folders, where "Program Files" is "Programmi", etc.

The problem is, if the user selects "C:\Programmi" in the FolderBrowerDialog, when I display the selection in a textbox, it displays "C:\Program Files". From what I understand, the "real" name of "C:\Programmi" is "C:\Program Files" and "Programmi" is just a display name (new to Vista, in XP the display name and real name were both "C:\Programmi").

So my question is: How do I get the display name so that I can show it to the user instead of the real name? Is there a property in either Path or DirectoryInfo or Directory that would do the "Translation"?

Any help on this would be much appreciated!

Hugo Migneron

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.