Hi, In which language are you writing the code for this? vb or vb.net? If in case of classic vb, use buttons as control array and write a single function. if in case of vb.net, write a event as follows : Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click, Button5.Click, Button4.Click, Button3.Click, Button2.Click Dim kBtn As Button kBtn = sender TextBox1.Text = kBtn.Text End Sub Here you can use the source button's properties using kBtn variable. Thanks, Kiran Kumar