Click here to Skip to main content
15,905,229 members
Home / Discussions / C#
   

C#

 
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

QuestionXML Parser ? Pin
Ash2023-Apr-08 0:52
Ash2023-Apr-08 0:52 
GeneralRe: XML Parser ? Pin
Christian Graus23-Apr-08 0:57
protectorChristian Graus23-Apr-08 0:57 
GeneralDynamically get assembly version Pin
Christian Graus23-Apr-08 0:47
protectorChristian Graus23-Apr-08 0:47 
GeneralRe: Dynamically get assembly version Pin
Simon P Stevens23-Apr-08 1:53
Simon P Stevens23-Apr-08 1:53 
GeneralRe: Dynamically get assembly version Pin
Christian Graus23-Apr-08 11:36
protectorChristian Graus23-Apr-08 11:36 
GeneralRe: Dynamically get assembly version Pin
Jordanwb23-Apr-08 16:01
Jordanwb23-Apr-08 16:01 
GeneralRe: Dynamically get assembly version Pin
Christian Graus23-Apr-08 16:29
protectorChristian Graus23-Apr-08 16:29 
GeneralRe: Dynamically get assembly version Pin
Jordanwb24-Apr-08 2:12
Jordanwb24-Apr-08 2:12 
GeneralVS2008 - no suitable entry point [modified] Pin
#realJSOP23-Apr-08 0:47
professional#realJSOP23-Apr-08 0:47 
GeneralRe: VS2008 - no suitable entry point Pin
Christian Graus23-Apr-08 0:57
protectorChristian Graus23-Apr-08 0:57 
GeneralRe: VS2008 - no suitable entry point Pin
#realJSOP23-Apr-08 1:08
professional#realJSOP23-Apr-08 1:08 
QuestionHow can i use Active Accessibility 2.0 in c#.net Pin
hamid_m23-Apr-08 0:44
hamid_m23-Apr-08 0:44 
Questionreceive file names sent to application Pin
Member 467598622-Apr-08 23:50
Member 467598622-Apr-08 23:50 
AnswerRe: receive file names sent to application Pin
J a a n s22-Apr-08 23:58
professionalJ a a n s22-Apr-08 23:58 
Generalc#: Problems with accessing struct field members Pin
brexail22-Apr-08 23:36
brexail22-Apr-08 23:36 
QuestionRe: c#: Problems with accessing struct field members Pin
CPallini23-Apr-08 0:00
mveCPallini23-Apr-08 0:00 
GeneralRe: c#: Problems with accessing struct field members Pin
brexail23-Apr-08 0:09
brexail23-Apr-08 0:09 

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.