My context menu does not work

D

Dom

I have a control called MyDataGridView, and the property
ContextMenuStrip is set to ContextMenu Control.

The problem is ... when I write click on MyDataGridView, the context
menu comes up in edit mode. That is, I can click on an item and edit
it. Also, the menu does not go away after I click on it.

One big complication. As I said, MyDataGridView is a user-control
that extends the DataGridViewControl. It overrides the mousedown
event. In the override, I call a new Event ("MouseDownPrep") in which
I let the subscriber set a variable in the Args object, that cancels
the MouseDown event. Hope that makes sense.

Any ideas on how to fix this?

Dom
 
D

Dom

I decided that something must have gone wrong in the designer code. I
removed everything concerning the context menu, then redid all the
work. Now it works fine. So I withdraw this post.

Dom
 

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