Change default-event-handler

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 :)
 
M

Mr. X.

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 :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top