>I had write a usercontrol ctrl1 with a textbox and two button, button1 and
>button2.
> I had drow ctrl1 in a windows form.
> I would like to know when i click button1 e when i click button2.
Publish an event, say ButtonClicked
ButtonClickedEventArgs class may have a property of type Button pointing to
the button clicked.
Then, in usercontrol you may do something like:
Page_Load(...)
{
button1.Clicked += myMethod;
button2.Clicked += myMethod;
}
void myMethod(...)
{
if(ButtonClicked != null)
{
ButtonClicked(this, new ButtonClickedEventArgs((Button) sender));
}
}
etc.

Signature
Happy Hacking,
Gaurav Vaish | http://www.mastergaurav.com
http://www.edujinionline.com
http://articles.edujinionline.com/webservices
-------------------