I assume you are using
VB 6.0. You need to programme the keydown event of the control.
The code is :
If KeyCode=vbKeyTab then
Msgbox "Tab key pressed"
' do necessary actions
KeyCode=0 'This will set the key code to null. Otherwise, focus will go to the control with next tab index.
End If