>Hi David,
>I dont get what you mean. I have got a subclass called CyberlogicBaseButton which is a subclass of a button. I add CyberlogicBaseButton to the form called CyberlogicBaseButton1. I want to override the click event of CyberlogicBaseButton by using the click event of CyberlogicBaseButton1 on the form.
>
>Regards,
>
>>You need to subclass outside the form and instantiate the subclass by dragging it onto the form. Dragging a control onto a form in .NET does not subclass it (unlike VFP).
CyberlogicBaseButton1 on the form is an instance of the CyberlogicBaseButton, not a subclass. The ability to add code to an instance of a control on a form is a RAD feature specific to VFP called pseudo-subclassing that other development systems, like .NET, do not support.
The code you put into control_eventname is, in fact, an event handler, not the event itself. This is what Kevin was saying in Message #
641892.