Context menu doesn't work on WinCE4.2 device

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
 
G

Guest

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
 
G

Guest

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
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top