context menu

  • Thread starter Thread starter Chris
  • Start date Start date
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
 
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
 
Back
Top