Use the keyboard to control the smashed door (transfer from http:blog.9cbs.netdhlhh) in the input box (transfer from http:blog.9

xiaoxiao2021-03-06  115

SendKeys.send (" {Tab}"); Example: Private void txtminfo_keydown (Object sender, KeyEventargs e) {// Jump IF (E.Keycode == Keys.enter || E.KeyCode == Keys. Right) {sendKeys.send ("{tab}");} // Else if (E.Keycode == Keys.left || e.Keycode == Keys.up) {sendKeys.send (" { Tab} ");}} is simple, but it is very practical. Today is better, just in order to discover a small door to a keyboard control. Many articles have similar introductions, such as pressing ENTER keys, cursor moves to the next article. However, I have never known, how to open it, that is, the cursor is going back to the previous control. I like it, use Google, I don't search, I know myself. I started to make a button, but I won't go back. Later I thought of the Tab key, with the control key plus the Tab key trial. Ctrl Tab, Alt Tab, haha, is: Shift Tab immediately using SendKeys, how to write Shift Tab. Still some trouble, help in (EC). Mission, { Tab}, { }}}, { } {tab} ...... Master you can think of it, all tried success: correct writing: