I have created my program in the compact framework 3.5, and I am trying to open an html file in my program using this code:
string path = @"Help\index.html";
System.Diagnostics.Process.Start(path);
However I am receiving the following error:
Argument '1': cannot convert from 'string' to 'System.Diagnostics.ProcessStartInfo'
Can someone please tell me what I am doing wrong?
Your code is working for me; however, you can try the following code:
System.Diagnostics.ProcessStartInfo p = new System.Diagnostics.ProcessStartInfo(path);
System.Diagnostics.Process.Start(p);
Alternatively, you can try:
Process.Start("chrome.exe", path);