what is gotfocus and lostfocus in vb?
The GotFocus event for a control fires in VB6 when the control receives the focus through user action or through the SetFocus method. ... You can also use a control's LostFocus event to clear the message when the focus moves away from the control to prevent possible confusion.