Problem with ActiveX control

Hello Everybody, my English is not very good, but I will try to explain my problem.
I use Shickwave Flash Object in my project.
Because this control don't have any mouse events like OnMove etc, so I create MyControl and use inherit.

I want to change control's context menu on menu of my own.

Public
Class flash
Inherits AxShockwaveFlashObjects.AxShockwaveFlash

PublicConst WM_RBUTTONDOWN = &H204

Dim pointAsNew Point

ProtectedOverridesSub WndProc(ByRef mAs System.Windows.Forms.Message)
SelectCase m.Msg
Case WM_RBUTTONDOWN
point =
Me.PointToClient(Cursor.Position)
Me.ContextMenu.Show(Me, point)
Return
EndSelect

MyBase.WndProc(m)

EndSub
End
Class

It's OK, control's contextmenu replaced with menu of my own, but MenuItems in Menu of my own don't clicking. On click on menuitems nothing happend.

There is all sample:

PublicClass Form1
Inherits System.Windows.Forms.Form

#Region " Automatically generated code"

PublicSubNew()
MyBase.New()
InitializeComponent()
EndSub

ProtectedOverloadsOverridesSub Dispose(ByVal disposingAsBoolean)
If disposingThen
IfNot (componentsIsNothing)Then
components.Dispose()
EndIf
EndIf
MyBase.Dispose(disposing)
EndSub

Private componentsAs System.ComponentModel.IContainer
FriendWithEvents AxShockwaveFlash1As flash
FriendWithEvents ContextMenu1As System.Windows.Forms.ContextMenu
FriendWithEvents MenuItem1As System.Windows.Forms.MenuItem

<System.Diagnostics.DebuggerStepThrough()>PrivateSub InitializeComponent()

Me.components =New System.ComponentModel.Container
Dim resourcesAs System.Resources.ResourceManager =New System.Resources.ResourceManager(GetType(Form1))
Me.AxShockwaveFlash1 =New Flash_Player.flash
Me.ContextMenu1 =New System.Windows.Forms.ContextMenu
Me.MenuItem1 =New System.Windows.Forms.MenuItem

CType(Me.AxShockwaveFlash1, System.ComponentModel.ISupportInitialize).BeginInit()

Me.SuspendLayout()
'
'AxShockwaveFlash1
'
Me.AxShockwaveFlash1.ContextMenu =Me.ContextMenu1
Me.AxShockwaveFlash1.Enabled =True
Me.AxShockwaveFlash1.Location =New System.Drawing.Point(16, 8)
Me.AxShockwaveFlash1.Name = "AxShockwaveFlash1"
Me.AxShockwaveFlash1.OcxState =CType(resources.GetObject("AxShockwaveFlash1.OcxState"), System.Windows.Forms.AxHost.State)
Me.AxShockwaveFlash1.Size =New System.Drawing.Size(352, 256)
Me.AxShockwaveFlash1.TabIndex = 0
'
'ContextMenu1
'
Me.ContextMenu1.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.MenuItem1})
'
'MenuItem1
'
Me.MenuItem1.Index = 0
Me.MenuItem1.Text = "Выход"
'
'Form1
'
Me.AutoScaleBaseSize =New System.Drawing.Size(5, 13)
Me.BackColor = System.Drawing.Color.GhostWhite
Me.ClientSize =New System.Drawing.Size(384, 358)
Me.Controls.Add(Me.AxShockwaveFlash1)
Me.ForeColor = System.Drawing.SystemColors.ControlText
Me.KeyPreview =True
Me.MinimumSize =New System.Drawing.Size(392, 392)
Me.Name = "Form1"
Me.Text = "Spawn Flash Player"
Me.TransparencyKey = System.Drawing.Color.Violet
CType(Me.AxShockwaveFlash1, System.ComponentModel.ISupportInitialize).EndInit()
Me.ResumeLayout(False)
EndSub

#EndRegion

PrivateSub MenuItem1_Click(ByVal senderAs System.Object,ByVal eAs System.EventArgs)Handles MenuItem1.Click
End
EndSub

PublicClass flash
Inherits AxShockwaveFlashObjects.AxShockwaveFlash

Public
Const WM_RBUTTONDOWN = &H204
Dim pointAsNew Point

Protected
OverridesSub WndProc(ByRef mAs System.Windows.Forms.Message)
SelectCase m.Msg
Case WM_RBUTTONDOWN
point =
Me.PointToClient(Cursor.Position)
Me.ContextMenu.Show(Me, point)
Return
EndSelect
MyBase.WndProc(m)' Передаем события дальше
EndSub
End
Class

I hope that you understand something.

[14179 byte] By [SpawnProduction] at [2008-1-28]
# 1
How I understand, it will be easy to create a new form like context menu...

Hm, nobody couldn't resolve my problemSmile

SpawnProduction at 2007-9-8 > top of Msdn Tech,Visual Basic,Visual Basic Language...
# 2
Shawn... I don't think I know the answer. Sorry.

I wanted to ask you a question about Flashvars on the axShockwaveFlashObjects.AxShockwaveFlash control. I need to set the property but it will not allow it. Do you know how to set Flashvars? I have tried SetVariable but it does not fit my needs. Please let me know.

davidhart_home at 2007-9-8 > top of Msdn Tech,Visual Basic,Visual Basic Language...
# 3
I didn't work with Flashvars...
Read this - http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_16417
SpawnProduction at 2007-9-8 > top of Msdn Tech,Visual Basic,Visual Basic Language...