chm and application.startuppath

  • Thread starter Thread starter al jones
  • Start date Start date
A

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
 
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.
 
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
 
Back
Top