IsInputKey override and ding sound
-
when i override to handle tab in a textbox i have a ding sound like if the key is not supported/is not allowed in here.
protected override bool IsInputKey( Keys keyData ) { if ( keyData == Keys.Tab ) { return true; } return base.IsInputKey( keyData ); }
so how do i suppressed this sound ? -
when i override to handle tab in a textbox i have a ding sound like if the key is not supported/is not allowed in here.
protected override bool IsInputKey( Keys keyData ) { if ( keyData == Keys.Tab ) { return true; } return base.IsInputKey( keyData ); }
so how do i suppressed this sound ?Override OnKeyDown instead and set e.Handled to true.
-
Override OnKeyDown instead and set e.Handled to true.
-
I think Robert is right... in the Keydown event, you may add
if(IsInputKey) e.Handled=True.... This would stop the ding I guess....
-
I think Robert is right... in the Keydown event, you may add
if(IsInputKey) e.Handled=True.... This would stop the ding I guess....