Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Subclassing All Base Controls
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00642367
Message ID:
00643028
Views:
25
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform