private void textBoxFileH_Enter(object sender, EventArgs e) { TextBox editingTextBox = ((TextBox)sender); TextEditForm ed = new TextEditForm(); Point scp = editingTextBox.PointToScreen(new Point(0, 0)); ed.Location = new Point(scp.X + 10, scp.Y + 4); ed.Text = editingTextBox.Text; if (ed.ShowDialog(this) == DialogResult.OK) { editingTextBox.Text = ed.Text; } ed.Dispose(); }