private void InsertURL() { using (URLForm f = new URLForm()) { if (f.ShowDialog() == DialogResult.OK) { txtStatusUpdate.Text = txtStatusUpdate.Text + " " + f.URL; } this.Show(); f.Close(); } }
private void InsertURL() { using (URLForm f = new URLForm()) { f.Owner = this; if (f.ShowDialog() == DialogResult.OK) { txtStatusUpdate.Text = txtStatusUpdate.Text + " " + f.URL; txtStatusUpdate.SelectionStart = txtStatusUpdate.Text.Length; txtStatusUpdate.SelectionLength = 0; } f.Dispose(); } }