VBGood网站全文搜索 Google

搜索VBGood全站网页(全文搜索)
首页 - 经验之谈 - 用键盘操纵控件
发表评论(0)作者:Narayana Vyas Kondreddi, 平台:VB6.0+Win98, 阅读:10223, 日期:2000-10-20
Manipulate your controls from the keyboard
If you注释:re not comfortable using your mouse--or can注释:t achieve the precise results you注释:d like--these tips will come in handy.

First, you can resize controls at design time by using the [Shift] and arrow keys, as follows:

SHIFT + RIGHT ARROW increases the width of the control
SHIFT + LEFT ARROW decreases the width of the control
SHIFT + DOWN ARROW increases the height of the control
SHIFT + UP ARROW decreases the height of the control

Note: The target control must have focus, so click on the control before manipulating it from the keyboard.

Second, by using the [Control] key and the arrow keys, you can move your controls at design time, as follows:

CONTROL + RIGHT ARROW to move the control to the right
CONTROL + LEFT ARROW to move the control to the left
CONTROL + DOWN ARROW to move the control downwards
CONTROL + UP ARROW to move the control upwards

If you select more than one control (by clicking on the first and shift-clicking on the others), the above procedures will affect all the selected controls.