Relative Content

Tag Archive for c#wpfvisual-studio-2022

Process.Start() method not opening notepad.exe application

I am coding in C#. Currently attempting to run the notepad executable from my universal WPF form targeted for Windows 10 (Visual Studio 2022). I want to run the Process.start(“notepad.exe”) however am having difficulty troubleshooting. It does not appear in task manager and does not launch the application. The code is not returning or throwing any exceptions and appears to be closing by itself when viewed in process monitor. I am rather new to coding and may have made some significant oversights that I just am not seeing. Any help in this matter is much appreciated. The code for the app is located below: