I'm trying to create a custom control library for the first time and I'm a bit stuck. I need a custom control that contains a button which, when clicked, fires a custom event. If it were a user control this would be easy because I could write a Button control into the ascx file and set its event handling accordingly. But with a custom control am I right in saying that the button would have to be written programmatically into the rendered output? If so how can I capture that button's events???