private void LayoutPropertyGrid_KeyUp(object sender, KeyEventArgs e) { switch (e.KeyCode) { case Keys.Delete: _layoutControl.DeleteSelected(); break; case Keys.F5: _layoutControl.RefreshElements(); break; } }
private void btnRemove_Click(object sender, EventArgs e) { _layoutControl.DeleteSelected(); }