>If I create a class containing any code, can that code be inherited when I place the control on a form.
It is automatically inherited.
If you place
additional code on the button on the form, inheritance is broken - unless you use DoDefault() (or the old-style, now-seldom-used, scope-resolution operator
::).
HTH, Hilmar.
>
>For example:
>
>
>Lparameters param1,param2
>**Place to define variables
> varx= ""
> vary= 0
>
>**Place to Release variables
>
>release varx,vary
>RELEASE thisform
>
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)