1 method. multiple events

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Samishii23
    New Member
    • Sep 2009
    • 246

    1 method. multiple events

    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...
    Code:
    ClickHandler(object sender, EventArgs ex) {
        switch(ex) {
            case ex.LeftClick:
                ...
            case ex.RightClick:
               ...
            case ex.DblClick:
               ...
            }
        }
    Except I can't remember what the actual legit code for this to work is...
    Thanks in advance.
    Last edited by Samishii23; Jan 26 '10, 10:45 PM. Reason: Clarifying
  • alexis4
    New Member
    • Dec 2009
    • 113

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

    Comment

    • Samishii23
      New Member
      • Sep 2009
      • 246

      #3
      Thats it! Thank you!

      Comment

      Working...