Created
December 18, 2014 20:18
-
-
Save joebuschmann/3d4608cee4566a89d4e2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected override bool ProcessDialogKey(Keys keyData) | |
{ | |
// Suppress the accept button by preventing the parent form | |
// from processing the return key. | |
// Return false to indicate that the key press has not been | |
// handled and the child control should handle it. | |
if (keyData == Keys.Return) | |
return false; | |
return base.ProcessDialogKey(keyData); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment