PC Review


Reply
Thread Tools Rate Thread

Context menu and any COM component problem

 
 
Norbert
Guest
Posts: n/a
 
      12th Dec 2003
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


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to remove a context menu component (C#, VB.net, .net) Jobrook Microsoft Dot NET 1 11th Apr 2010 11:06 PM
Context Menu in user Component.............................URGENT gurjinder Microsoft C# .NET 0 18th Aug 2004 03:11 PM
Owner Drawn Context Menu in NotifyIcon Component news.centurytel.net Microsoft VB .NET 0 21st Mar 2004 05:21 AM
Owner Drawn Context Menu in NotifyIcon Component news.centurytel.net Microsoft VB .NET 0 21st Mar 2004 05:18 AM
RE: Adding a custom Context Menu to a Component Tray =?Utf-8?B?SXVsaWFuIElvbmVzY3U=?= Microsoft Dot NET Framework Forms 2 14th Feb 2004 06:51 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:26 PM.