screensaver


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: screensaver

  1. #1
    mike finnegan Guest

    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)

  2. #2
    bob butler Guest

    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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center