-
|
Hi guys, Now I am using WPF and there is no such thing as StartupNextInstanceEventArgs in application events. Of course, what came to my mind was: But this is not enough because I want the previous file to stop and the new file to run like StartupNextInstanceEventArgs in application events.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
There is a general .NET way, see https://learn.microsoft.com/en-us/dotnet/api/system.environment.getcommandlineargs?view=net-7.0 Otherwise in WPF this is in Application.OnStartup / Application.Startup |
Beta Was this translation helpful? Give feedback.
There is a general .NET way, see https://learn.microsoft.com/en-us/dotnet/api/system.environment.getcommandlineargs?view=net-7.0
Otherwise in WPF this is in Application.OnStartup / Application.Startup