예제 #1
0
 private void chkEnabled_CheckedChanged(object sender, EventArgs e)
 {
     if (chkEnabled.Checked)
     {
         enabled = true;
         touchPad.ExclusiveCapture = true;
         formShowRegion            = new FormShowRegion();
         formShowRegion.SetLocationAndSize(region);
         formShowRegion.Show();
     }
     else
     {
         enabled = false;
         touchPad.ExclusiveCapture = false;
         formShowRegion.Close();
         formShowRegion.Dispose();
         formShowRegion = null;
     }
 }
 private void updateRegion()
 {
     this.region = new Rectangle((int)this.numLeft.Value, (int)this.numTop.Value, (int)this.numWidth.Value, (int)this.numHeight.Value);
     fShowRegion.SetLocationAndSize(this.region);
 }