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

Re: context menu by Chris

Chris
Fri Jan 06 01:57:34 CST 2006

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

"Chris" <misterjingo@gmail.com> wrote in message
news:58pvf.76630$D47.75930@fe3.news.blueyonder.co.uk...
> 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
>