Control the smashed door to the cursor in the input box with the keyboard

xiaoxiao2021-03-06  107

9CBS - Document Center - .NET Read: 672 Comments: 0 Participation in Reviews

The title with the keyboard control cursor in the input box, the small door to jump in the input box Select Self-dhlhh's Blog keyword with the keyboard to control the cursor in the smashed door that jumps in the input box. Today is better, just to find a keyboard control. happy. 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). Multiple trial, { Tab}, { }}}}, { } {tab} ...... Musi you think of it, all tried success: correctly writing: sendKeys.send " {Tab}"); Example: Private void txtminfo_keydown (Object sender, keyeventargs e) {// back 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 very simple, but it is very practical.

Author Blog:

http://blog.9cbs.net/dhlhh/

转载请注明原文地址:https://www.9cbs.com/read-103447.html

New Post(0)