Hi, your attached method has a sender argument, which can be casted to the
PictureBox which was clicked:
'///
Dim pbClicked As PictureBox
If TypeOf sender Is PictureBox Then pbClicked = DirectCast(sender,
PictureBox)
'///
--
Happy to help,
-- Tom Spink
(th**********@ntlworld.com)
"Go down with your server"
http://dotnetx.betasafe.com >> On The Mend
Please respond to the newsgroup,
so all can benefit
"Scott Mackay" <sc******@nildram.co.uk> wrote in message
news:3f***********************@mercury.nildram.net ...
Hi again,
okay follow up question:
now that I have handled the clicking of one of my array of pictureboxes,
how can I tell which picturebox within the array I have clicked on?
regards,
Scott M.
"Scott Mackay" <sc******@nildram.co.uk> wrote in message
news:3f***********************@mercury.nildram.net ... Hi,
I'm using visual studio dotnet 2002 programming in vb
can anyone tell me how I can handle the mousedown event for pictureboxes
I create dynamically at runtime?
I've tried setting the mousedown to handle mybase.mousedown but it
doesn't detect the mousedown event until I move out of the pictureboxes I have
created (only works on the part of the form where I don't have any
pictureboxes). I also cannot set the mousedown event to handle my array
of pictureboxes as they are not a valid handle.
regards,
Scott M.
----
remove the "remove spam" and change (at) to @ to reply
----