there must be some conditions preventing the codes.
check if any of the follwing is true
* The control may be a type that can't receive the focus, such as a label.
* The control's Visible property may be set to No.
* The control's Enabled property may be set to