by LaVolpe (66 Submissions)
Category: Miscellaneous
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (9 Votes)
Edited to expand comments & samples: Just one of many ways to check for previous instances across processes, that can also pass command line parameters used to start another instance. By now, many of you realize that App.PrevInstance doesn't work all the time. This version is a non-subclassing approach, a subclassing approach may be slightly cleaner. Compile sample project and test.
Download FYI: Previous Instance & Command Line Passing (6 KB)