views:

29

answers:

0

I am working in .NET Compact Framework, C#, .Net 2.0, Visual Studio 2005.

I have a form with several ComboBoxes, which have DropDownStyle = DropDown, so I can edit information in the controls.

This form must have a ContextMenu (Cut, Copy, Paste etc). I did a menu, but there is a problem: When a ContextMenu is assigned to a ComboBox, this menu does not work on the edit part of the control. When an user holds down a pen on the dropdown arrow, the context menu is shown, but when a pen is held on the rest of the control, the context menu is not shown.

I tried this variant and a ContextMenu works fine. But when a ComboBox gets a focus, SIP appears what is quite uncomfortable.

So my question is: How can I use a ContextMenu with an editable part of ComboBoxes?

Thanks,

Vlad