Quote Originally Posted by Gruff View Post
mutley,

Can you verify if you are using VB6 and not VB.NET?
In VB.NET what you are asking about is called inheritance.

VB6 does not support that directly.

There are work arounds.

A user control is one. You would have to map all the existing properties if you want them as well.

Another option is to create a class that incorporates a variable of the control type and exposes its events with the 'WithEvents' clause.

You would create a collection of instances of the class in form load attaching the relevant controls in a loop.
All in all it is a kludge, but it can solve some difficult problems. (I still use it occasionally in VBA.)

I can dig up a sample if this is what you want.
Thank you, I would like !!!