Context menu doesn't work on WinCE4.2 device

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi, I've develop a small application with a context menu. The context menu
works right on PPC (emulator and device) and on WinCE emulator but doesn't
work on real WinCE4.2 device.

When I click and hold down the pen nothing happens ? Do you know the reason
of this ?

Thank you in advance.

Keven Corazza
 
No, because if I press and hold the mouse button on a ListView control it
works. It work also on the desktop and every where...

Keven Corazza
 
Ok, forst you said it didn't work, now it does. You need to provide more
detail. In what situations does it not work? On what controls?

-Chris
 
OK, doesn't work at all on my applications on that device; if I run the same
applications on PPC or on WinCE emulator it works.

But it seems that the device support the context menu because it works in
the desktop or in other software like Explorer and so on.
I've checked netcf version but it is the same as in the emulator.

My code is the following.

private void Form1_Load(object sender, System.EventArgs e)
{
this.ContextMenu=new ContextMenu();
this.ContextMenu.Popup+=new EventHandler(ContextMenu_Popup);
}

private void ContextMenu_Popup(object sender, EventArgs e)
{
ContextMenu.MenuItems.Clear();
MenuItem menuItem1 = new MenuItem();
menuItem1.Text="Test";
ContextMenu.MenuItems.Add(menuItem1);
}

Thank you.

Keven Corazza
 
Back
Top