You may have a list of selected controls. Just determine if Ctrl was pressed when you clicked on the control and added it to the selected list (you can also delete it if the control was previously added):
List<TControl> selectedControls = new List<TControl>();
private void TControl_Click(object sender, EventArgs e)
{
if ((ModifierKeys & Keys.Control) == 0)
return;
TControl tc = (TControl)sender;
if (selectedControls.Contains(tc))
return;
selectedControls.Add(tc);
}
source
share