Beispiel #1
0
 private void SelectButton_Click(object sender, EventArgs e)
 {
     using (var f = new AreaSelectionForm())
     {
         f.Move   += (s, a) => SavePosition(f);
         f.Resize += (s, a) => SavePosition(f);
         f.ShowDialog();
     }
 }
Beispiel #2
0
 private void SavePosition(AreaSelectionForm f)
 {
     AreaTextBox.Text = $"{f.Left};{f.Top};{f.Width};{f.Height}";
 }