C# 2008 fileopendialog

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Peted

    #1

    C# 2008 fileopendialog

    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
  • KWienhold

    #2
    Re: C# 2008 fileopendialog

    On 24 Jun., 06:55, Peted wrote:
    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. DereferenceLink s 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

    Comment

    • Peted

      #3
      Re: C# 2008 fileopendialog

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

      to clarify this i should have said

      i wanted to use FolderBrowserDi alog 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 FolderBrowserDi alog 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 FolderBrowserDi alog select and use shortcuts would be my
      best option.

      Is this possible ?

      thanks for any help

      Peted

      >
      >Normally you would set OpenFileDialog. DereferenceLink s 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

      Comment

      Working...