private void Desktop_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Space && e.Control) { BackColor = Color.Orange; } else if (e.KeyCode == Keys.Space) { BackColor = Color.Red; } else if (e.KeyCode == Keys.Return) { Add.Client frm = new Add.Client(); frm.TopLevel = false; frm.AutoScroll = true; panel1.Controls.Add(frm); frm.Show(); } else if (e.KeyCode == Keys.Enter && e.Alt && e.Control) { Add.Client frm = new Add.Client(); frm.TopLevel = false; frm.AutoScroll = true; panel1.Controls.Add(frm); frm.Show(); } }
private void newClientToolStripMenuItem_Click_1(object sender, EventArgs e) { Add.Client frm = new Add.Client(); frm.TopLevel = false; frm.AutoScroll = true; panel1.Controls.Add(frm); frm.Show(); }