|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
chm and application.startuppathThere 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. -- Peter Macej Helixoft - http://www.helixoft.com VSdocman - Commenter and generator of class documentation for C#, VB ..NET and ASP .NET code On Mon, 02 Oct 2006 09:22:52 +0200, Peter Macej wrote:
>> FOHelp.HelpNamespace = Application.StartupPath & "FontOrg.chm" as they say "DUH!!!" I finally saw that and it works like a charm - damn I> > 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. hate asking stupid questions! //al |
|||||||||||||||||||||||