I very much doubt that you do need such code. What is the relationship between the two forms? I'm guessing that Form1 creates Form2, correct? Are you displaying the second form modally or non-modally, i.e. with ShowDialog or Show? Do you want to transfer the text back to the first form when the second closes?