Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Newbie!!

Newbie!!

Scheduled Pinned Locked Moved Visual Basic
tutorialquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nguyen Dinh Quy
    wrote on last edited by
    #1

    How can we open a folder? I need to open a window to show the contents of a folder..only could find how to open Files and Create Directories..

    M D 2 Replies Last reply
    0
    • N Nguyen Dinh Quy

      How can we open a folder? I need to open a window to show the contents of a folder..only could find how to open Files and Create Directories..

      M Offline
      M Offline
      MohammadAmiry
      wrote on last edited by
      #2

      Use the ShellExecute API function Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long It opens all files and folders

      1 Reply Last reply
      0
      • N Nguyen Dinh Quy

        How can we open a folder? I need to open a window to show the contents of a folder..only could find how to open Files and Create Directories..

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        Do you want to open the folder in an Explorer window, just like typing in C:\ in the Start/Run box? If so, all you need to do is the same thing, either using a Process object (VB.NET), or the other suggestion (VB6). Process.Start()[^] method RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups