Answers for "how to open any file on button click in winforms"

C#
1

how to open any file on button click in winforms

System.Diagnostics.Process process = new System.Diagnostics.Process();
System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo();
startInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
startInfo.FileName = "The app location but if you type with  type \";
startInfo.Arguments = "The command of the file if there is not then don't type here anything";
process.StartInfo = startInfo;
process.Start();
Posted by: Guest on November-18-2021

Code answers related to "how to open any file on button click in winforms"

C# Answers by Framework

Browse Popular Code Answers by Language