private void tsmiCustom_Click(object sender, EventArgs e) { using (frmCustomTrackBounds frmCustomTrackBounds = new frmCustomTrackBounds()) { frmCustomTrackBounds.CustomBounds = this.Bounds; frmCustomTrackBounds.CustomBoundsChanged += new EventHandler( (o, ea) => { this.Bounds = frmCustomTrackBounds.CustomBounds; }); if (DialogResult.OK == frmCustomTrackBounds.ShowDialog(this)) { // this.Bounds = frmCustomTrackBounds.CustomBounds; } } }
private void tsmiCustom_Click(object sender, EventArgs e) { using (frmCustomTrackBounds frmCustomTrackBounds = new frmCustomTrackBounds()) { frmCustomTrackBounds.CustomBounds = this.Bounds; frmCustomTrackBounds.CustomBoundsChanged += new EventHandler( (o, ea) => { this.Bounds = frmCustomTrackBounds.CustomBounds; }); if (DialogResult.OK == frmCustomTrackBounds.ShowDialog(this)) { // this.Bounds = frmCustomTrackBounds.CustomBounds; } } }