Results 1 to 7 of 7

Thread: How to open the folder explorer right click menu in Visual Basic?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jun 2011
    Location
    Iran [Islamic Republic]
    Posts
    28

    Resolved How to open the folder explorer right click menu in Visual Basic?

    Hello,
    When I right click on the file in the Visual Basic listview, I want open the Windows Explorer to menu (The menu when we right click on a file in Explorer opens)

    How do I open the menu Explorer with API commands in Visual Basic?

    Thanks
    Last edited by msnv; Jul 29th, 2011 at 03:10 AM.

  2. #2
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: How to open the folder explorer right click menu in Visual Basic?

    Displaying a menu won't do you much good. You'll have to code what happens when a user clicks on one of the menu items too.

    The menu you see in Explorer is not so simple. There is a 'service' that Explorer offers applications so that they can add their own menu items there and also some of the menu items are found in subfolders. For example the "Send To" menu item is in the user's personal settings folder: C:\Documents and Settings\[username]\SendTo

    Since your listview is not known to Explorer not can it be made known to Explorer, I cannot see anyway of having Explorer display its context menu on your listview.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jun 2011
    Location
    Iran [Islamic Republic]
    Posts
    28

    Re: How to open the folder explorer right click menu in Visual Basic?

    Thanks
    Then:
    The menu is not displayed in Visual Basic Explorer,Is this true?

  4. #4
    Just a Member! seenu_1st's Avatar
    Join Date
    Aug 2007
    Location
    India
    Posts
    2,170

    Re: How to open the folder explorer right click menu in Visual Basic?

    u can create ur own menu in VB using menu editor.
    Seenu

    If this post is useful, pls don't forget to Rate this post.
    Pls mark thread as resolved once ur problem solved.
    ADO Tutorial Variable types SP6 for VB6, MsFlexGrid fast fill, Sorting Algorithms


  5. #5
    Lively Member Stupidiot's Avatar
    Join Date
    Apr 2011
    Location
    India
    Posts
    95

    Re: How to open the folder explorer right click menu in Visual Basic?

    The simple way is....Insert a Web-browser control from components:

    Code:
    Private Sub Form_Load()
    WebBrowser1.Navigate "C:\"
    End Sub
    Windows explorer at your service....

  6. #6
    Just a Member! seenu_1st's Avatar
    Join Date
    Aug 2007
    Location
    India
    Posts
    2,170

    Re: How to open the folder explorer right click menu in Visual Basic?

    good idea! stupid.
    Seenu

    If this post is useful, pls don't forget to Rate this post.
    Pls mark thread as resolved once ur problem solved.
    ADO Tutorial Variable types SP6 for VB6, MsFlexGrid fast fill, Sorting Algorithms


  7. #7
    Hyperactive Member
    Join Date
    Dec 2008
    Location
    Argentina
    Posts
    441

    Re: How to open the folder explorer right click menu in Visual Basic?

    Quote Originally Posted by Stupidiot View Post
    The simple way is....Insert a Web-browser control from components:

    Code:
    Private Sub Form_Load()
    WebBrowser1.Navigate "C:\"
    End Sub
    Windows explorer at your service....
    leandroascierto.com Visual Basic 6 projects

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width