That's a nice design concept, Jim. I'm going to guess that your base form class has the Editing property, right? So there's no way your txtBase class could get used on a form without an Editing property, otherwise txtBase.Refresh would have to check if Thisform.Editing exists, which would slow things down.
>...
>My txtBase class has a property named editable whihc is logical and this code in the Refresh method;
>
>
>IF This.Editable
> This.Enabled = Thisform.Editing
>ENDIF
>
>
>This way if I want one textbox to NOT be switched then I just set its Editable property to .F. in the property sheet.
>
>I also have a txtSearch class that has the opposite logic in the Refresh, but it still honors the editable property.
Rick Borup, MCSD
recursion (rE-kur'-shun) n.
see recursion.