C# 2008 fileopendialog

P

Peted

Hi
is there a way to use the fileopen dialog in c# 2008, so that when i
am traversing a directory to find a file to open, if i click on a
shortcut to a file or a shortcut to a directory, it will open the file
or diretory pointed to by that shortcut.
Of course if the shortcut is point to a directory it should just take
to that directory to let me select a file inside.

At the moment i cannot get the fileopen dialog to show any shortcuts
in the directory i am looking at.

Any help appreciated

thanks

Peted
 
K

KWienhold

Hi
is there a way to use the fileopen dialog in c# 2008, so that when i
am traversing a directory to find a file to open, if i click on a
shortcut to a file or a shortcut to a directory, it will open the file
or diretory pointed to by that shortcut.
Of course if the shortcut is point to a directory it should just take
to that directory to let me select a file inside.

At the moment i cannot get the fileopen dialog to show any shortcuts
in the directory i am looking at.

Any help appreciated

thanks

Peted

Normally you would set OpenFileDialog.DereferenceLinks to determine
how the Dialog deals with shortcuts, however, as far as I am aware,
the default setting should already be to follow the shortcut.
Could you possibly post a short example of the code that is causing
the problem?

Kevin
 
P

Peted

My bad,
i got myself totaly confused and made a mistake

to clarify this i should have said

i wanted to use FolderBrowserDialog to browse through a directory
structure, and if there was a shortcut pointing to another directory
be able to select the shortcut and go there,

however it is FolderBrowserDialog that apparently does not show
shortcuts becasue shortcuts are actually files.

and i cant use the OpenFileDialog becasue i cant select folders with
it.

Is it possible tocombine the features of one into the other, i think
to make the FolderBrowserDialog select and use shortcuts would be my
best option.

Is this possible ?

thanks for any help

Peted
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top