@WONG Tony , you could try to use the event LostFocus
and method Control.Focus
to keep the focus all the time.
Here is a code example you could refer to.
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Me.Focus()
AddHandler Me.LostFocus, AddressOf Form1_LostFocus
End Sub
Public Sub Form1_LostFocus(sender As Object, e As EventArgs)
Me.Focus()
End Sub
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.