Link to home
Start Free TrialLog in
Avatar of quiTech
quiTechFlag for Canada

asked on

Extending a PictureBox class

Hello,

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.

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of quiTech

ASKER

Cool!!!!!!! Works really well!

Quick follow up question: does "MyBase" refer/point to the base class from which the class was extended?
That is correct.