For MIKEP - ScreenSaver
Posted on 1998-08-19
(I'm using VB5 Enterprise Edition)
I saw your post on ScreenSavers and like it very much.
But I keep getting "Compile Error: Invalid use of
ME keyword" in the following code:
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
Dim PWOK As Boolean
' If passwords are turned on and we are not on NT check ' the password.
If RunMode = RM_NORMAL Then
If PWMode = 1 And CurrOS = "95" Then
ShowCursor True ' Need the cursor for the dialog ' box
' compiler doesn't like this!
PWOK = VerifyScreenSavePwd(Me.hwnd)
If PWOK = False Then Cancel = True
ShowCursor False ' Get rid of cursor - turn back ' on if exiting
Can you give me any help for this? How could I
rewrite it to not use Me keyword?
P.S. Is this code I call when mouse is moved? Or, does
it work automatically somehow?
Any help apreciated............Jerry