OK. Now I understand your point. When I originally read your first reply, I was wondering how BINDEVENTS was related to the process of actually adding the textbox class to the column member class.
Thanks for the help.
Mike
>Hi Mike.
>
>
BTW, can you explain how BINDEVENTS could potentially help here? My only use of BINDEVENTS thus far has been to resize objects in my form when the form resizes.>
>Sure. Here is some of the code in the SetGrid() method of my base grid class:
>
>
>*!* now make sure that the dblclick method of all the contained text boxes
>*!* delegate to the grid's dblclick()
>FOR EACH loColumn IN This.Columns
> FOR EACH loControl IN loColumn.Controls
> IF LOWER( loControl.BaseClass ) = 'textbox'
> BINDEVENT( loControl, 'dblClick', This, 'dblClick' )
> ELSE
> IF LOWER( loControl.BaseClass ) = 'header'
> BINDEVENT( loControl, 'Click', This, 'SortGrid' )
> ENDIF
> ENDIF
> ENDFOR
>ENDFOR
>