View Single Post

  #6 (permalink)  
Old 03-14-2006
Wilfried Wilfried is offline
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,055
Hi,

I just did following test:

MP ActiveX on a main form
Context menu named PopupMenu with 1 item and a Click event with:
Code:
Console.Beep();
then in BeforeClick:

Code:
        private void MP_BeforeClick_1(object sender, AxMapPoint._IMappointCtrlEvents_BeforeClickEvent e)
        {
            e.cancel = true;
            PopupMenu.Show(MousePosition);
When I click right the Popup menu is showed, and when Iclick the item the speaker does a happy beep

I use VS2005 and dotNet version 2.
Reply With Quote