Hi,

My application allows the user to choose an image which is displayed
in a picturebox. Associated to this picturebox I have a
ContextMenuStrip.

As my application is a Mdi, when I'm running the application it is
possible to open two or more images. At each time, just one form is
active.

If the form A is actived then it would be not possible to view the
contextmenu if the right mouse button is clicked on the form B.

At the moment, I can see the contextmenu when the form is active or
not.

Someone can help me with this problem?

For me a good solution could be activing the form that receive a click
right mouse button. But associated with the picturebox there is no
event with the right mouse button.

thanks.

Re: ContextMenuStrip by sa

sa
Sat Oct 06 08:35:14 PDT 2007

PictureBox is really a simple control. You can create you own custom picture
box with right click and contextmenu using GDI+.

Let me know in case you need any help.
________________________
sa@openwinforms.com
http://www.openwinforms.com/
OpenWinForms - open source windows forms and controls

Google group - http://groups.google.com/group/open-winforms
"ilda.cpp" <ildamarisa@gmail.com> wrote in message
news:1191545488.051054.254050@g4g2000hsf.googlegroups.com...
> Hi,
>
> My application allows the user to choose an image which is displayed
> in a picturebox. Associated to this picturebox I have a
> ContextMenuStrip.
>
> As my application is a Mdi, when I'm running the application it is
> possible to open two or more images. At each time, just one form is
> active.
>
> If the form A is actived then it would be not possible to view the
> contextmenu if the right mouse button is clicked on the form B.
>
> At the moment, I can see the contextmenu when the form is active or
> not.
>
> Someone can help me with this problem?
>
> For me a good solution could be activing the form that receive a click
> right mouse button. But associated with the picturebox there is no
> event with the right mouse button.
>
> thanks.
>