Hi
I'm note sure if this will work with a scrollbar, but I have found that it works very well with
preventing keystrokes on other controls.
-------------------------------------------------------------------------------
protected override bool IsInputKey(Keys keyData) {
if (this.ActiveControl == this.scrollbar)
return false;
else
return base.IsInputKey (keyData);
}
Msqln wrote:
Hi I made a form with picturebox and scrollbars. However, scrollbars react to arrow keys. What I would like is that scrollbars react only to mouse. Is there a way to ignore keyboard for scrollbars or to know if mouse has been used on scrollbar?