I am trying to open windows 7 help from a .Net form application to a specific bookmark, at printer installation for example.
I tried to open it in the same whay that I open Control Panel applets (Back & Restore in the example below).
ProcessStartInfo startInfo = new ProcessStartInfo(@"c:\windows\system32\control.exe", "/name Microsoft.BackupAndRestore");
startInfo.UseShellExecute = true;
Process.Start(startInfo);
But it doesn’t work.
I didn’t succeed neither to open the .exe.
Does anyone know how to do this?
IIRC
HelpPane.exeworks with.h1sfiles so if you have full path to such a file you can just use for exampleProcess.Start (@"C:\myDir\myhelpfile.h1s");to open it.According to MS another option (most likely the recommenced one) is to host the HelpPane (which is basically a COM object!) – for details see http://msdn.microsoft.com/en-us/library/ms728715%28v=VS.85%29.aspx
Other important MSDN links are:
From the above links:
Depending on what you want to achieve you might need to first sign a license agreement with MS…
EDIT – as per comments:
To display a specific topic you need to call the method
DisplayTaskof the COM object with the URL of that topic.EDIT 2 – as per comments the final solution:
Add a reference to
C:\Windows\System32\HelpPaneProxy.dllto the project then you can use the HelpPane like this