Βεβαια μπορω, το παραδειγμα ειναι σε treeView αλλα η λογική ειναι ίδια
private bool isShiftPress, isCtrlPress;
private void Tree_KeyDown(object sender, KeyEventArgs e)
{
isCtrlPress = e.Control;
isShiftPress = e.Shift;
}
private void Tree_MouseUp(object sender, MouseEventArgs e)
{
if (isCtrlPress)
//Do your code for ctrl+mouseButton
if(isShiftPress)
//Do your code for Shift+mouseButton
}
private void Tree_KeyUp(object sender, KeyEventArgs e)
{
if (isCtrlPress)
isCtrlPress =
false;
if (isShiftPress)
isShiftPress = false;
}
Ελπίζω να βοήθεισα,
Νάσος
"Success is the ability to go from one failure to another with no loss of enthusiasm."
Winston Churchill
"Quality means doing it right when no one is looking."
Henry Ford