|
When You Cant Move A Control
Have you ever used the GoToControl or SetFocus method to
select a control and had it fail to work as expected? These methods might
not work for several reasons, which aren't always obvious. When this
happens to you, check for the following first:
- Are you trying to give focus to a control that can't
receive focus? Not all controls can receive the focus. The label
control is one of these control types that can't receive the focus.
- The control's Visible property must be set to Yes. If
the control's Visible property is set to No, that control can't
receive the focus.
- The control's Enable property must be set to Yes. An
enabled control can't receive the focus.
So, if you have trouble with one of these methods, check
these three conditions.
|
|