Let's suppose I have an instance of my program already running. I can detect that by using :
If it's true I want it to do 2 things . One is to close my current app ( Application.Exit() ) and the other ... is to Maximize the window of the instance that is already running. How do I achieve that ?
Visual Basic:
If UBound(Diagnostics.Process.GetProcessesByName(Diagnostics.Process.GetCurrentProcess.ProcessName)) > 0 Then
Return True
If it's true I want it to do 2 things . One is to close my current app ( Application.Exit() ) and the other ... is to Maximize the window of the instance that is already running. How do I achieve that ?