示例#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();
     }
 }
示例#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();
     }
 }