I know this function will check to see if an instance is already running, in which you can check it...
Function PrevInstance() As Boolean
If Ubound(Diagnostics.Process.GetProcessesByName(Diagnostics.Process.GetCurrentProcess.ProcessName)) > 0 Then
Return True
Else
Return False
End If
End Function
But I was wondering if it was possible to have vb bring the already running application forward in windows and give it focus before I close the second app?
Function PrevInstance() As Boolean
If Ubound(Diagnostics.Process.GetProcessesByName(Diagnostics.Process.GetCurrentProcess.ProcessName)) > 0 Then
Return True
Else
Return False
End If
End Function
But I was wondering if it was possible to have vb bring the already running application forward in windows and give it focus before I close the second app?