You'll have to avoid getting in the way of regular use of the Enter key. This should be close: protected override bool ProcessCmdKey(ref Message msg, Keys keyData) { if (keyData == Keys. Enter && this.
AcceptButton == null && this. ActiveControl! = null) { TextBoxBase box = this.
ActiveControl as TextBoxBase; if (box == null ||!box. Multiline) { // Not a dialog, not a multi-line textbox; we can use Enter for tabbing this. SelectNextControl(this.
ActiveControl, true, true, true, true); return true; } } return base. ProcessCmdKey(ref msg, keyData); }.
Working cool.. actually ProcessCmdKey doesn't occur under the form events list, so couldn't use it earlier. ^_^ I Edited a bit and modified it to detect if any buttons are available and if there is, it'll not move focus, instead press the button.. Button be = this. ActiveControl as Button; if (keyData == Keys.
Enter && this. AcceptButton == null && this. ActiveControl!
= null &&!this.ActiveControl. Equals(b)) { TextBoxBase box = this. ActiveControl as TextBoxBase; if (box == null ||!box.
Multiline) { // Not a dialog, not a multi-line textbox; we can use Enter for tabbing this. SelectNextControl(this. ActiveControl, true, true, true, true); return true; } } return base.
ProcessCmdKey(ref msg, keyData); But whatif I want to press the button once and then move again to the new control? Is there any way to invoke this ProcessCmdKey manually?
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.