CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8

Threaded View

  1. #1
    Join Date
    Aug 2007
    Posts
    448

    menuitems is not working when clicking on shockwave

    Hi guys,

    I have a form with contextmenu where you can get the menu items on shockwave. I uses the menu items event to get the method of working when clicking them on shockwave by using right-mouse button. When I debug the project and when I clicked on testmenu item, nothing have happens.



    Form Code:

    Code:
    Public Class Form1
    
        Private Sub testmenu_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles testmenu.Click
            MessageBox.Show("this is the test!")
        End Sub
    End Class


    Class Library:


    Code:

    Code:
    Public Class ShockwaveMenu
        Inherits AxShockwaveFlashObjects.AxShockwaveFlash
        Private Const WM_RBUTTONDOWN As Integer = &H204
    
        Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message)
            Select Case m.Msg
                Case WM_RBUTTONDOWN
                    Form1.ContextMenu1.Show(Me, PointToClient(Cursor.Position))
                    m.Result = New IntPtr(1)
                    Return
            End Select
            MyBase.WndProc(m)
        End Sub
    End Class


    Please can you tell me why it doesn't do anything when I click on testmenu item?? And please can you help me to get this fix by when I click the point on shockwave to get the contextmenu items then click them to get the menuitems fully in working order??




    Thanks,
    Mark
    Attached Files Attached Files

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