private void FormChart_KeyUp(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Escape) this.Close(); }