Ben,
You need to override the refresh method in defining the sub-class not in the instance of the class.
>Hi Cathi,
>
>I was able to create a button class and add the override code for the refresh method. My form shows the button from my new button class, but I don't know how to add code for the refresh method in the form for that button.
>
>I come from VFP, and as you know, in VFP when you add a button from a base class you can add your own code for the refresh method. I am trying to accomplish the same thing.
>
>Are there any examples you can point me to?
>
>Thanks for your help.
>
>Ben Alicea
-----------------------------------------
Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.comwww.prenia.comWeblog: blogs.prenia.com/cathi