i just made a screensaver that looked through an array of images. it works
well except that after a
while it begins opening additional instances of the screensaver. i tried
adding the code
If app.PrevInstance = true then
when this is added in, it gives me an error 380: invalid property value
if you can provide me with any help, i'd appriciate it.
mike finnegan <firstname.lastname@example.org> wrote in message
> i just made a screensaver that looked through an array of images. it
> well except that after a
> while it begins opening additional instances of the screensaver. i tried
> adding the code
> If app.PrevInstance = true then
> end if
> end sub
> when this is added in, it gives me an error 380: invalid property value
> if you can provide me with any help, i'd appriciate it.
The syntax is: Unload Me
Lose the parentheses -- with them you are evaluating the expression (Me)
which resolves to the default property of the form and that's not what you
The real solution to the problem is to use the API to tell windows that you
are acting as the screensaver. If you do not do that then windows will
start a new instance of your app every time the screen saver delay kicks in.
See http://home.earthlink.net/~butlerbob/vb/win95/cad.htm for the calls for
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL