Board index » delphi » Hide extension in filelistbox

Hide extension in filelistbox

Hi everybody,

I have a question about a filelistbox. Is it possible to display the
files without extension, for example "windows.exe" is showed as
"windows".
I have searched lot of places but I can't find out how to do it.
And for example when you doubleclick on "windows" that it still opens
"windows.exe"?

Hope anybody can help

greetings
wilco

 

Re:Hide extension in filelistbox


On 3 Jan 2002 13:38:20 -0800, funn...@europe.com (wilco) wrote:

Quote
>Hi everybody,

>I have a question about a filelistbox. Is it possible to display the
>files without extension, for example "windows.exe" is showed as
>"windows".
>I have searched lot of places but I can't find out how to do it.
>And for example when you doubleclick on "windows" that it still opens
>"windows.exe"?

>Hope anybody can help

If the user's system has "Hide extensions for known file types" turned
on (Explorer: "View|Folder Options..." select the "View" tab), then
that's what you get in the standard file selection dialogs as well.  

If that feature is turned off on the user's system, I'd not recommend
overriding their choice in your dialogs (if you even can, which I
don't know how).

Stephen Posey
slpo...@concentric.net

Other Threads