-
screensaver
hi
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
form1_load()
If app.PrevInstance = true then
unload(me)
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.
regards,
mike finnegan
(r8458@together.net)
-
Re: screensaver
mike finnegan <r8458@together.net> wrote in message
news:38ebdf24$1@news.devx.com...
> 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
>
> form1_load()
> If app.PrevInstance = true then
> unload(me)
> 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
want.
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
Win9x systems.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
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
|
Bookmarks