Hi
Can anybody help me?
I've make my context menu at design time.
When I put any COM component on my form, and I call Show method of the
context menu in OnMouseDownEvent of the COM Component like:
Private Sub anyCoMComponent_MouseDownEvent(ByVal sender As Object, ByVal e
As
anyCOMComponent_MouseDownEvent) Handles anyCoMComponent.MouseDownEvent
Dim my_point As System.Drawing.Point
my_point.X = e.x
my_point.Y = e.y
If e.button = 2 Then
mnu_popup.Show(Me.anyCoMComponent, my_point)
End If
end sub
The context menu is displaying, but when I choose any option the menuitem
OnClickEvent is not fired
Can anybody tell me why?
When I try this one with any .NET object everything is OK
|