Change default-event-handler

  • Thread starter Thread starter Mr. X.
  • Start date Start date
M

Mr. X.

Hello.
How can I change the default event handler of a specific control.
I.e Button default event is "Click".
I want that MyButton's (inherits Button) default event will by MyClick
(internal method. same as Click).

Thanks :)
 
Problem has been solved !
I would like to create my own user control, and make a default-event-handler
for it.
I see that the attribute :
[DefaultEvent("myEvent")]
the above is put before the class.

Another similar issue, is the attribute (or what is called :
[ToolboxBitmap( <what should I write here>)]
I didn't succeed to connect my usercontrol to the toobox-bitmap,
and I don't know how to create a resource for that.
I need a basic tutorial, please.

Thanks :)
 
Back
Top