How to browse My Network Places in vb

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Swan
    New Member
    • Mar 2008
    • 27

    How to browse My Network Places in vb

    I'm using the native DriveListBox and DirListBox to allow the user to find
    and display the location of a file. I need to be able to allow them to select
    My Network Places in addition to the local drives on the machine. Is there
    a way to do this with the native DriveListBox or DirListBox controls? If
    not, any suggestions for which ActiveX control(s) to use to accomplish
    this??
    Thanking you!
  • Swan
    New Member
    • Mar 2008
    • 27

    #2
    How to browse My Network Places in vb

    I'm using DriveListBox to allow the user to find and display the location of a file. I need to be able to allow them to select file from My Network Places in addition to the local drives on the machine.But DriveListBox allows to select only local files.Is there a way to do this?I want inbuilt browse control.I got code to browse,but I don't want to use Shell.If
    not, any suggestions for which ActiveX control(s) to use to accomplish
    this??
    Thanking you!
    Last edited by Swan; Aug 21 '08, 09:00 AM. Reason: Explained in detail

    Comment

    • QVeen72
      Recognized Expert Top Contributor
      • Oct 2006
      • 1445

      #3
      Hi,

      Use a "Microsoft Common Dialog Control"
      add this thru projects >> Add components.
      Place it on the form, use this code:

      [code=vb]
      Commondialog1.S howOpen
      MyFileName = Commondialog1.F ileName
      [/code]

      REgards
      Veena

      Comment

      • Swan
        New Member
        • Mar 2008
        • 27

        #4
        Originally posted by QVeen72
        Hi,

        Use a "Microsoft Common Dialog Control"
        add this thru projects >> Add components.
        Place it on the form, use this code:

        [code=vb]
        Commondialog1.S howOpen
        MyFileName = Commondialog1.F ileName
        [/code]

        REgards
        Veena
        Hi,Thanks 4 reply but it can'nt work.Becoz I want to browse My Network Places,but I need inbuilt control i.e no separate dialogbox.Commo n file dialog opens separate dialog box.I want something like FileListBox(not this,it does not allow 2 browse My Network Places).

        Comment

        Working...