Results 1 to 5 of 5

Thread: App.Previnstance

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 1999
    Location
    Littlehampton, W Sussex GB
    Posts
    203
    Why would App.previnstance be true when App isn't running??
    I am testing this to see whether to allow another instance and it is true even after I have closed the app - I have to reboot to clear it - any ideas?

  2. #2
    Addicted Member
    Join Date
    Feb 2001
    Location
    Upstate NY
    Posts
    210
    The problem might be that when you end your application , you don't really end it. If you just unload the form, it might not work, try using the End command

    Code:
    Private Sub Form_Unload(Cancel as Integer)
    End
    End Sub
    that might help you, i dunno
    < o >

  3. #3
    Matthew Gates
    Guest
    How are you unloading the form(s)?

  4. #4
    Megatron
    Guest
    It should unload fine, even if you didn't have any code in your Unload events.

    Is there any code in your unload events?

  5. #5
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Location
    Israel
    Posts
    892
    This might also occur if you explicitly unload your form, then implicitly reload it, or something like that.
    Code:
    Unload Me ' Explicit unload
    Timer1984.Enabled = False ' Implicit reload

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