0
Answer

Custom Control Event Problem

I have prepared a windows form control. I have a button in the control. On the button click event I have put some code. The situation is, the user of the control may not want that code to execute, rather he may want to put his own code in the button click event handler. However he will only be having the dll of the control. How can he override the button click event handler? Do I need to declare a new event in the control itself which the user can register and handle in his own application? I am confused. It will be of great help if somebody can shed some light on this.