One way would be to write an event in your usercontrol and fire that
event when the button in the user control is clicked.
public event EventHandler ButtonClicked;
public void button_click(object sender,EventArgs e)
{
if(Butonclicked != null)
{
Buttonclicked(sender,e);
}
}
Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph
> I have a user control (inheriting from System.Windows.Forms.UserControl)
> with a button on it. I've added the control to the toolbox and have dragged
[quoted text clipped - 6 lines]
>
> Jay
Jason MacKenzie - 13 Oct 2004 11:28 GMT
Thank you sir. That worked fantastically.
> One way would be to write an event in your usercontrol and fire that event
> when the button in the user control is clicked.
[quoted text clipped - 23 lines]
>>
>> Jay