I have a number of forms each with the following mouseover code:
Private Sub Form_MouseMove(Button As Integer, shift As Integer, _
x As Single, y As Single)
frmInfoActMPH.Visible = False
End Sub
Private Sub Image1_MouseMove(Button As Integer, shift As Integer, _
x As Single, y As Single)
frmInfoActMPH.Visible = True
End Sub
It works fine. I want to put the code in a module and pass the form names to it but just copying the above code into the module will not work. Thanks in advance for any help.
Private Sub Form_MouseMove(Button As Integer, shift As Integer, _
x As Single, y As Single)
frmInfoActMPH.Visible = False
End Sub
Private Sub Image1_MouseMove(Button As Integer, shift As Integer, _
x As Single, y As Single)
frmInfoActMPH.Visible = True
End Sub
It works fine. I want to put the code in a module and pass the form names to it but just copying the above code into the module will not work. Thanks in advance for any help.