谁帮助俺解决对您来说是小,对我来说是大的问题!
Form 的 LostFocus和GotFocus事件本应是当窗体被点中时发生GotFocus事件,
当窗体不被激活时发生LostFocus事件!
但我的窗体不管激活还是不激活都不发生上述两个事件!
就是启动时发生了GotFocus事件后,如果此时我选别的文件夹窗口,则原来被激活的窗口应该变灰!发生LostFocus 事件,但我的程序却不发生LostFocus 事件!如果在窗体加上其他部件如按钮!则上述两个事件都不发生!如何解决!
Private Sub Form_GotFocus()
MsgBox "1"
Image1.Picture = Image3.Picture
End Sub
Private Sub Form_LostFocus()
Image1.Picture = Image3.Picture
MsgBox "2"
End Sub