How to open a windows help file [Resolved]
Let's say I created a help file "somehelpfile.hlp" for my program. I have a menu on my form that says Help. What code do I have to put in the button to get the windows help file viewer to open the help file and display it to the user?
Thanks buddies :)
Re: How to open a windows help file
This would be the easiest way:
VB Code:
System.Diagnostics.Process.Start("c:\my_wonderfull_helpfile.hlp")
Because a .hlp file is asociated to the viewer by default in windows.
Re: How to open a windows help file
You can also use the "HelpProvider" control from the toolbox.
Re: How to open a windows help file
It basically adds an entry into your app.config file.
VB Code:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings>
<!-- User application and configured property settings go here.-->
<!-- Example: <add key="settingName" value="settingValue"/> -->
<add key="HelpProvider1.HelpNamespace" value="C:\Test\MyHelp.chm" />
</appSettings>
</configuration>
Re: How to open a windows help file
Thanks guys this works great! :)
:thumb: