I'm trying to allow users to change the increment of a numeric updown but holding down shift (increment = 5) or ctrl (increment = 10). Default increment is 0.5
It works fine for ctrl but not for shift - even though my code is showing that I'm capturing the shift key. The numbers don't go up or down on the scrollwheel. Clicking the up-down arrows on the numeric while holding shift works fine though (increment = 5)
.
.
.
switch (e.KeyCode)
{
case Keys.ControlKey:
numPrice.Increment = 10;
break;
case Keys.ShiftKey:
numPrice.Increment = 5;
break;
}
etc. e.KeyCode equals Keys.ShiftKey when I step through, but in practise it doesn't have any effect. Is there a bug, or is this standard Windows behavious? I've written similar in VB6 and shift+scrollwheel worked fine...
Any advice greatly appreciated!
thanks
It works fine for ctrl but not for shift - even though my code is showing that I'm capturing the shift key. The numbers don't go up or down on the scrollwheel. Clicking the up-down arrows on the numeric while holding shift works fine though (increment = 5)
.
.
.
switch (e.KeyCode)
{
case Keys.ControlKey:
numPrice.Increment = 10;
break;
case Keys.ShiftKey:
numPrice.Increment = 5;
break;
}
etc. e.KeyCode equals Keys.ShiftKey when I step through, but in practise it doesn't have any effect. Is there a bug, or is this standard Windows behavious? I've written similar in VB6 and shift+scrollwheel worked fine...
Any advice greatly appreciated!
thanks