Recently, I had the idea to create a C # application for Windows Form, which allows the user to run applications from there. This is my "raw" code:
Button1 Click Event ...
{ System.Diagnostics.Process.Start("WINWORD.EXE"); }
Button2 Click Event ...
{ System.Diagnostics.Process.Start("WINRAR.EXE"); }
. ,,,,.
and much more...
Can someone please tell me what is the code that processes the event in case the application cannot be found (for example, WINWORD.EXE is unavailable blah, blah blah)?
I tried using the "if-statement", but to no avail, I get compilation errors.
Can someone help me? How to create a function that allows the user to add an application shortcut to a C # application?
Thanks to everyone in advance.
source share