Last post Apr 12, 2010 05:58 AM by Chromehearts
Sep 20, 2003 11:43 PM|Fraas|LINK
Sep 21, 2003 05:33 PM|Fraas|LINK
Mar 20, 2010 09:00 PM|lewyh|LINK
sorry wrong thread.
Mar 20, 2010 09:35 PM|kanasz.robert|LINK
private void button1_Click(object sender, System.EventArgs e)
this.textBox1.Text = btn.Text;
Mar 22, 2010 08: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 05: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.