Community discussion forum

RUNNING MY VB6 .EXE APPLICATION

Tags: Philippines
  • 1 year ago

     Thanks for this forum. I have a program that i have created in vb6 and compiled it to a .exe. The problem is that when i run it on any machine and exit the program, the application closes but if i check the running tasks using the task manager, the name ofmy application is there. Even when i run the application again, and close it, still i see another application name on the task manager. This means that if im open the program ten times in a day and i close all of them, if i open the task manager, i will see ten instances of the application listed one after the other. What is the likely problem with my .exe and what should i do to correct this. I will appreciate if you help me. Thanks in advance.

  • 1 year ago

     I think you should show  your code, especially the one you put in the load event so it can be checked by people here.  Anyway, have you consider this?

    Private Sub Form_Load()
    If App.PrevInstance = True Then
        Exit Sub
    Else
        Me.Show
    End If
    End Sub

    concon 

  • 1 year ago

     My mistake; put end instead of exit sub.

    concon 

Post a reply

Enter your message below

Sign in or Join us (it's free).

We'd love to hear what you think! Submit ideas or give us feedback