Hi,
I think its very simple( I think). But you have to do a little trick. You said you have 32 text boxes on the form and some buttons. Now you want the text be inserted in the txt boxes. You just make an array of 32 textboxes and initialize them with your 32 textboxes. Also set the tag property of each textbox with an index value that it appears on the form. You need to initialize the array of text boxes in the same order. Now create a singleOnFocus event handler for all the textboxes. Also create an a variable index of type int. In the event handler, write the following code:
public void OnFocus(Object sender,EventArgs e)
{
index=int.Parse(((TextBox)sender).Tag);
}
Now create the handler for Click event of the buttons. (Remember that you can create single event handler for the buttons if you the associated text is placed in the Tag property. In that case, retrieve that text from the tag property.
public void OnClick(Object sender,EventArgs e)
{
TextBox txt=ArrayOfTextBoxes[index];
txt.Text=<Associated text with the currently clickedbutton>;
}