Extending a PictureBox class
Posted on 2005-05-11
I would like to create a new class, extending the PicutreBox class, adding a few extra "bits". Specifically, the bits are:
- an extra text property called "ID" (or someting similar if ID is reserved)
- a generic "onmouseover" event that is fired each time the mouse enters on of these picture boxes, passing the ID value to the event handling sub.
The goal is to be able to create an arbitrary number of these picture boxes at runtime, each with a unique ID, then do something based on the ID, if the user moves the mouse over one of these picture boxes.
Hope 500 points is enough for this... would give more, but 500 seems to be the limit.