CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8
  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

  2. #2
    Join Date
    Aug 2007
    Posts
    448

    Re: menuitems is not working when clicking on shockwave

    Please can someone help me to get this fix?????????

  3. #3
    Join Date
    Aug 2007
    Posts
    448

    Re: menuitems is not working when clicking on shockwave

    Nobody?????????????????

  4. #4
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: menuitems is not working when clicking on shockwave

    You've asked before, and we've answered...
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  5. #5
    Join Date
    Aug 2007
    Posts
    448

    Re: menuitems is not working when clicking on shockwave

    No, this is the NEW THREAD and this is a different method I am working on so can you help??????????????

  6. #6
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: menuitems is not working when clicking on shockwave

    I don't have ShockWave, and didn't write the call that sub-classes it. That's pretty advanced stuff, and I can't help. If anyone was an EXPERT, they'd have answered all of your threads. The answer is SILVERLIGHT, if you want my opinion
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  7. #7
    Join Date
    Aug 2007
    Posts
    448

    Re: menuitems is not working when clicking on shockwave

    Look, don't be rude to me on here as I am asking you nicely if you do know how to fix the testmenu clicking event or not. There is no point telling me that there is options on silverlight, as it didn't make any different and I wouldn't like to do the work all over again. As I found out that they doesn't have much support of protocols. Now I am stick with shockwave, however please can you help me with the testmenu clicking event, as when I clicked the testmenu event, nothing have happens. Do you know why and do you know how to fix it??




    Thanks,
    Mark

  8. #8
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: menuitems is not working when clicking on shockwave

    No, no, and no. Sorry.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

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