Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have a small app that adds pics to a picture box, but id like to make the images clickable. I know how to fire an event, add handlers, etc, but how do i add an event to an image ?

 

Im not sure if im even asking this question correctly.

I just want to know how i can tell when a newly added image (to a pic box) has been clicked.

 

Thanks

Posted

You mean when someone actually clicks the image?

 

If so just do like you do with a button. With your picture box on your form, double click it to add the clickable sub to your code.

Live as if you were to die tomorrow. Learn as if you were to live forever.
Gandhi
Posted (edited)
No i mean if i have multiple images in a picture box, and a user clicks one, how do i know which one was clicked? Using only one picbox. Edited by et_

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...