Example #1
0
 private void InsertURL()
 {
     using (URLForm f = new URLForm())
     {
         if (f.ShowDialog() == DialogResult.OK)
         {
             txtStatusUpdate.Text = txtStatusUpdate.Text + " " + f.URL;
         }
         this.Show();
         f.Close();
     }
 }
Example #2
0
 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();
     }
 }