I have a mod that works as a timer so that my app stays running in the processes with the form hiden and not visible in the task bar. If the mouse is idle for the preset amount of time in the mod, the app shows again.
In order to stop users from launching the app twice, it is common to use:
If App.PrevInstance = True Then
My forms actual function that shows the already running app after the preset idle time is achived is:
If ExpiredMinutes >= MINUTES Then
TimeExpired = 0
frmTimer.Hide
frmMain.Show
Unload frmTimer
End If
This function is what is in the form named frmTimer
My question is how can I cause this function to fire so to speak, In other words if the program is hidden and ExpiredMinutes do not yet equal MINUTES and the user tries to open the executable again (attempt to create another instance of the app), how can I make it so that instead of just killing a second instance, to show or "unhide" the first one for use.
In order to stop users from launching the app twice, it is common to use:
If App.PrevInstance = True Then
My forms actual function that shows the already running app after the preset idle time is achived is:
If ExpiredMinutes >= MINUTES Then
TimeExpired = 0
frmTimer.Hide
frmMain.Show
Unload frmTimer
End If
This function is what is in the form named frmTimer
My question is how can I cause this function to fire so to speak, In other words if the program is hidden and ExpiredMinutes do not yet equal MINUTES and the user tries to open the executable again (attempt to create another instance of the app), how can I make it so that instead of just killing a second instance, to show or "unhide" the first one for use.