Home All Groups Group Topic Archive Search About

chm and application.startuppath

Author
1 Oct 2006 10:15 PM
al jones
There is no installation for the program I wrote, one just copies the files
to some directory and runs it from there,

I have both a working program and help file (.chm).  From within the IDE
pressing F1 gives the desired results, proper 'page' opens.  However when
it's 'installed' on a users machine help presents an houglass icon for 1 -
2 seconds and then it goes away without bringing up the helps (returns to
the GUI).

Assuming that it was because HelpNameSpace is set in the environment, I set
it to
       FOHelp.HelpNamespace = Application.StartupPath & "FontOrg.chm"
in formload - still no joy, any suggestions.

please excuse rhe typing, I have ny left hand in a casr which is making
typing kinda rough.

//al

Author
2 Oct 2006 7:22 AM
Peter Macej
>        FOHelp.HelpNamespace = Application.StartupPath & "FontOrg.chm"

Have you checked what Application.StartupPath returns? There is no
backslash at the end so you need to add it manually if it's missing. Or
use System.IO.Path.Combine method.


--
Peter Macej
Helixoft - http://www.helixoft.com
VSdocman - Commenter and generator of class documentation for C#, VB
..NET and ASP .NET code
Author
2 Oct 2006 3:42 PM
al jones
On Mon, 02 Oct 2006 09:22:52 +0200, Peter Macej wrote:

>>        FOHelp.HelpNamespace = Application.StartupPath & "FontOrg.chm"
>
> Have you checked what Application.StartupPath returns? There is no
> backslash at the end so you need to add it manually if it's missing. Or
> use System.IO.Path.Combine method.

as they say "DUH!!!"  I finally saw that and it works like a charm - damn I
hate asking stupid questions! //al