I am using a calculator program and have a Paste button so that I can paste the readout or answer into a textbox on another form. In other words, I use a form (Form1) with a textbox (Text1) and I want to be able to call up the calculator form, run a calculation and then paste the result into the Form1.Text1 textbox. I have several textboxes on Form1, so I need to make sure that I paste the result into the right textbox.

I want to paste in in the textbox that has the focus. I can't figure out how to tell the Calculator Paste command button how to identify the textbox that has the focus on Form1.

Any help? Thanks.