Results 1 to 6 of 6
  1. #1

    Wpf context menu problem


    I have an application which has Wpf context menu.

    When a button is clicked Wpf menu gets pops up.

    I am not able to get sub menus from that.

    Please provide some solution

    Thanks in advance,

  2. #2

    Re: Wpf context menu problem

    you might find this function useful - I have used it before to select an option from a pop up context menu. The index being the the position of the link you wish to click on.

    Function SelectMenuOption (idx)

    Set WshShell = CreateObject("Wscript.Shell")
    For i = 1 To idx
    WshShell.SendKeys "{DOWN}"

    WshShell.SendKeys "{ENTER}"
    Set WshShell = nothing

    End Function

    Hope this helps,

  3. #3

    Re: Wpf context menu problem

    What happens if the PC is locked?

  4. #4
    Senior Member
    Join Date
    Aug 2008
    chennai, india

    Re: Wpf context menu problem

    how to get the value of selected item from the context menu


  5. #5

    Re: Wpf context menu problem

    you can press CTRL key while recording menu items

  6. #6

    Re: Wpf context menu problem

    I have not been able to get this to work. I can get the menu to open with the fireevent command, but the Selectmenuoption function does not work to navigate to the new page.

    Thank You for any help you can provide me to get this working.




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
BetaSoft Inc.
All times are GMT -8. The time now is 05:59 PM.

Copyright BetaSoft Inc.