I am creating a button programmatically, that is according to a user action I am adding a button to a form. My question is that I would like to add an event handler to it? Is it possible to add an event handler to a programmatically generated button? Maybe you can add a snippet to the collection and refer me to it!
Thanks in advance!
dangoff How are you adding the button?
Collins I am adding the button programmatically that is:
Button b = new Button....
b.text = "..."
I have foudn this method online. Isnt that good? But now I want to add an event handler for it! Smile Would appreciate if you help me!
dangoff Hi, I've not got time to write an example for you, but this should do it😃