chm and application.startuppath

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
 
P

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.
 
A

al jones

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top