CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 1999
    Posts
    57

    Urgent - PopMenu Failed!!!!



    I have a form in which I have displayed many shape controls ( All the Shape Controls are in a single control array ). When I right-click on a Shape Control I display a PopupMenu . It works.

    But when I go to another Shape Control and Right-click nothing happens. The previous Pop-Menu remains. I am not able to trap any events. Only if I click the Form with Left-Mouse Button, the Pop-Menu disappears.


    How do I display the PopUpMenu at each and every click ?


    Thanks in Advance

    Anand

  2. #2
    Join Date
    Jan 1999
    Location
    Cairo /egypt
    Posts
    7

    Re: Urgent - PopMenu Failed!!!!



    Hi ,

    I think You do not use True


    Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)

    If Button = 2 Then

    PopupMenu sds, True, X, Y





    End If


    End Sub

    I hope it help you

    wael farouk ahmed

  3. #3
    Join Date
    Jan 1999
    Location
    Cairo /egypt
    Posts
    7

    Re: Urgent - PopMenu Failed!!!!



    hello


    put the flag to 2


    Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)

    If Button = 2 Then

    PopupMenu MyMenuName , 2, X, Y





    End If


    End Sub




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

Featured