CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: PrevInstance

  1. #1
    Join Date
    Jul 1999
    Posts
    3

    PrevInstance

    I'm trying to create a screen saver using VB 6.0 I found a template VB file that has helped me greatly. But I'm having trouble getting the PrevInstance property to work. Everytime the screen saver exectues, it creates about 30-40 copies of itself. The documentation from Microsoft isn't very helpful in where this code needs to be placed and called from. I have it in a basic module, but it mentions a form load event?

    any help would be appreciated.


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: PrevInstance

    if you want to avoid that your app is started multiple times, you can use the App.Previnstance property.
    If your app starts with "sub Main" you can place it there.
    If it starts with a form, place the following code in the Form_Load event proc of your form.

    if app.previnstance then
    end
    end if


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured