Click event for PictureBox

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!
 
A

Arn Cota

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
Picturebox / PaintEvent 1
Need a control 3
Exposing Properties and Events 2
Transparent picturebox? 14
Add EventHandler at Runtime 4
Paint on PictureBox 2

Top