picturebox selected property? -


i'm wondering if there's property in picturebox control tell when selected?

i have set of pictureboxes shown in form, user can click on any, when happens, use code change visuals indicate user selected it.

private void clickpicbox(object sender, system.eventargs e) {          imagenseleccionada = ((system.windows.forms.picturebox)sender).tag.tostring();         int = int32.parse(imagenseleccionada);       if (picbox[i].borderstyle == borderstyle.fixed3d)         {             picbox[i].borderstyle = borderstyle.none;          }         else         {             picbox[i].borderstyle = borderstyle.fixed3d;          } } 

now, visual stuff user. i'd set property picturebox[i] tell selected can later on perform actions selected..

how can perform that?

it's easier use e.location contains point of mouse click.


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -