Last post Apr 12, 2010 06:58 AM by Chromehearts
Sep 21, 2003 12:43 AM|Fraas|LINK
Sep 21, 2003 06:33 PM|Fraas|LINK
Mar 20, 2010 10:00 PM|lewyh|LINK
sorry wrong thread.
Mar 20, 2010 10:35 PM|kanasz.robert|LINK
private void button1_Click(object sender, System.EventArgs e)
this.textBox1.Text = btn.Text;
Mar 22, 2010 09:19 AM|rsoni1980|LINK
Sender object is type of object any time if you want to use any property/attribute of sender object first you need to type cast it with your desire object.
for this problem first you need to change the sender object ot button then you can use the Text property of button.
Apr 12, 2010 06:58 AM|Chromehearts|LINK
You can try some code like this. There are as follows
Me.TextBox1.Text= ((XX DataType)sender).Text .
or Me.TextBox1.Text= (sender as XX DataType).Text
pay attention plz, The sender's dataType must be a event source.