Results 1 to 3 of 3

Thread: Checking whether my program is running and to terminate the second attempt

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2001
    Posts
    4

    Unhappy Checking whether my program is running and to terminate the second attempt

    Hi, I am trying to check whether my program is running and if so when other users attempt to run the program, it should terminate, don't let the program run and pop up the already form window which i have been already hidden.

    I have tried [ if (app.PrevInstance = true) then
    End
    Else
    Load frmMain
    EndIf ]

    And here what happens was that its checking itself and didn't even run for the first time. Please help me.

    Thank you in advance.
    Waiting for the day to visit Jamaica....

  2. #2
    Fanatic Member
    Join Date
    Jan 2001
    Location
    Vietnam
    Posts
    613
    See attached file for all instruction.

    Regards.
    Attached Files Attached Files

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2001
    Posts
    4
    hi thanx for the codes that you have attached..

    now my question is..is "ThunderRT6Main" the window's name? and would it be ok if I just add the codes in the Module.?
    Waiting for the day to visit Jamaica....

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