LostFocus 事件

       

当 ActiveX 控件失去输入焦点时,将产生本事件。

Private Sub object_LostFocus()

object   ActiveX 控件的名称。

示例

当“ListBox1”失去输入焦点时,将运行本示例。

Private Sub ListBox1_LostFocus()
    ' runs when list box loses the focus
End Sub