context menu

C

Chris

Hi all,

I have a context menu and I wish its contents to be displayed in a
ToolStripMenuItem.
I simply assign the context menu to toolstripmenuitem.dropdown. This works
fine, but it seems if I right click to open the context menu, the first time
it opens is under ToolStripMenuItem rather than the mouse pointer. After
this everything works as intended. If the ToolStripMenuItem is opened first,
then the contextmenu always appears where it should.
I use this technique in another form and the context menu always displays
correctly.

Is this a bug? If so how do I correct it. It doesn't cause any harm. it's
just an annoyance.

Chris
 
C

Chris

Hmm, it seems if I add the context menu to the toolstripmenuitem in it's
properties (Drop down) rather than write the line of code, this doesn't
occur.

Chris
 

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