The sender argument to the Click handler will be a reference to the clicked
button, you would just examine the sender's Name property.

--Bob

----- Original Message -----
From: "Lude Gullit" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 12, 2004 10:01 AM
Subject: [C#.NET] Get the name of the clicked button


>
>
> Hi,
>
> I have two textboxs - txt1 and txt2- and two buttons-btn1 and btn2-
> and a calendar-cal1.
>
> I want to realize this function: if i click btn1, the selected date
> will appear on to the txt1; and if i click btn2, the selected date
> will appear on to the txt2. My problem is how can I know which
> button is clicked? Thanks


Yahoo! Groups Sponsor
ADVERTISEMENT
click here
Web Bug from http://us.adserver.yahoo.com/l?M=298184.5584357.6650215.3001176/D=groups/S=:HM/A=2426685/rand=447298547


Yahoo! Groups Links

Reply via email to