468,512 Members | 1,477 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,512 developers. It's quick & easy.

1 method. multiple events

Samishii23
246 100+
I'm sorry to ask kinda a newbie question here... But I've been searching the webs for an old tutorial on MSDN that had a good portion of what I need, but to no avail... Now I need to ask since I'm at a loss, and I could not find what I was looking for...

Ok...

I have a PictureBox that I need to link to the LeftClick, RightClick and DblClick events. I remembered the tutorial being layed out like this...
Expand|Select|Wrap|Line Numbers
  1. ClickHandler(object sender, EventArgs ex) {
  2.     switch(ex) {
  3.         case ex.LeftClick:
  4.             ...
  5.         case ex.RightClick:
  6.            ...
  7.         case ex.DblClick:
  8.            ...
  9.         }
  10.     }
Except I can't remember what the actual legit code for this to work is...
Thanks in advance.
Jan 26 '10 #1

✓ answered by alexis4

Well my search didn't last much, but I searched for mouse down and not mouse click.
Did you mean this tutorial?

2 1275
alexis4
113 100+
Well my search didn't last much, but I searched for mouse down and not mouse click.
Did you mean this tutorial?
Jan 27 '10 #2
Samishii23
246 100+
Thats it! Thank you!
Jan 27 '10 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by - vhannak | last post: by
1 post views Thread by Ryan McLean | last post: by
4 posts views Thread by Mark Goldin | last post: by
6 posts views Thread by Michael Landberg | last post: by
1 post views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.