force menu dropdown

Hello,
Can someone tell me how to programaticaly (wow) force a top level menu item to drop down For example: Like when you click the standard 'File' menu and you get the lower menu items to drop down. I need to be able to do that by code. Thanks ahead,

Aaron


Answer this question

force menu dropdown

  • Hexadecimator

    Hello,

    Thank you very much. SendKeys was the answer. You guys are great.

    Aaron


  • howco

    Oh I see, the solution I gave was for VB 2005. If you're using VB6 you'll either have to use a Windows API call, or use SendKeys to send Alt+<accelerator key letter> to the menu to drop it down.



  • David Bradly

    Hello,

    Isnt that for combo boxes in c++ . I am trying to dropdown a menu item from the main menu of an MDI form, in VB6.

    Thanks

    Aaron


  • Abhishek Chadha

    Hi Aaron,

    You can use the ShowDropDown method to do this (i.e. FileToolstripmenuitem.Showdropdown())

    Hope that helps,

    Jonathan



  • force menu dropdown