Opening a .chm file using Visual C# 2005 express  
Author Message
progames25





PostPosted: Visual C# Express Edition, Opening a .chm file using Visual C# 2005 express Top

Hey,

ummm, I make a .chm help file for my program but there is a problem I cant fugure out how to make it open it...I added it to the project, and make it copy itself to the output folder, but now how would I amke it open the help file

Thanks :)




Visual Studio Express Editions4  
 
 
gqlu





PostPosted: Visual C# Express Edition, Opening a .chm file using Visual C# 2005 express Top

Hi,

Use Process class to achieve this:



Process p = new Process();
p.StartInfo.FileName = "test.chm";
p.Start();



 
 
progames25





PostPosted: Visual C# Express Edition, Opening a .chm file using Visual C# 2005 express Top

umm, it does not recognize Process making it not recognize p...

there is ProcessCmdKey and so on but not Process alone...is there a using I should add at the start of everything with all the other usings

Thanks :)



 
 
ahmedilyas





PostPosted: Visual C# Express Edition, Opening a .chm file using Visual C# 2005 express Top

Process is in the System.Diagnostics namespace.

System.Diagnostics.Process.Start("filename.chm");

how may also wish to look at this:

http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfSystemWindowsFormsHelpClassShowHelpTopic2.asp

which would be better practice

thread moved to the appropriate forum



 
 
progames25





PostPosted: Visual C# Express Edition, Opening a .chm file using Visual C# 2005 express Top

ok, thanks :)