用键盘操纵控件

发表于:2007-06-17来源:作者:点击数: 标签:
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 th

   
  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. 

原文转自:http://www.ltesting.net