Kenneth,
From all I know it's was rather lame-brained attempt
my editorialization *g* to mimic something from VB which doesn't have inheritance. Personally I've never used it.
Tell us what you are trying to do, and we'll be able to point you at a solution where that doesn't involve trying to use the control array or nIndex.
You can use the Form.Controls[] collection array to step through all of the form controls to manipulate them. As far as event handling goes that is really done by method code in the subclasses of the controls that you create.
>Thanks. Then how about the parameter nIndex passed to event procedures?
>In the Help it says
>
>"Uniquely identifies a control if it is in a control array"
>
>and the definition of control array
>
>"A group of controls that share common names, types, and event procedures. Each control has a unique index. When a control in the array recognizes an event, it calls the event procedure for the group and passes the index as an argument, allowing your code to determine which control recognized the event."
>
>I wonder there must be some way to create such kind of things. The most important things is they share common names, and have a unique index.