I want to Open the particular page of CHM file. I am using WPF application. Currently i have implemented the
System.Diagnostics.Process.Start(filepath)
This will not help open the particular page
Regards, NewDev
I want to Open the particular page of CHM file. I am using WPF application. Currently i have implemented the
System.Diagnostics.Process.Start(filepath)
This will not help open the particular page
Regards, NewDev
It sounds like you're essentially trying to add context-sensitive help to a WPF application. For example, that if you hit F1 with your cursor in a specific textbox, you'll see help for that specific textbox.
If that's the case, see this article:
or this one:
Specifically, you can accomplish this using the System.Windows.Forms.Help.ShowHelp() command.
You may need to add a reference to System.Windows.Forms.dll to access the Help functions.
Finally, if you're still lost on using Help files, all the info you need should be right here: http://msdn.microsoft.com/en-us/library/2ksk25ts.aspx This is all for Windows Forms, of course, but it should carry over to WPF if you have the correct references.
You have to add "System.Windows.Forms" reference to your project and then call Help.ShowHelp method to open a specific page in "xyz.chm"
System.Windows.Forms.Help.ShowHelp(null, "xyz.chm","xyz_index.html");
Hope this helps :)
© 2022 - 2024 — McMap. All rights reserved.