Click event for PictureBox

  • Thread starter Thread starter Arn Cota
  • Start date Start date
A

Arn Cota

I am trying to trap a mouse click (stylus tap) on a PictureBox component,
but it doesnt have such an event exposed. What are my options here? Do I
need to subclass this control and make my own? Is there another way to add
such behavior?

Thanks!
 
Hmm looks like if I add:

this.pictureBox.Click += new System.EventHandler(this.pictureBox_Click);

to my code, I can track a click even though this is not show in the
Properties dialog for PictureBox.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Mouse event on Picturebox 1
Tab Key 1
Transparent picturebox? 14
MouseWheel event doesn't work on PictureBox 1
Paint on PictureBox 2
Need a control 3
Exposing Properties and Events 2
invalidate, events and audio? 4

Back
Top