Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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();
 
PREVIOUS NEXT
Tagged: #open #file #button #click #winforms
ADD COMMENT
Topic
Name
3+7 =