ShowHelp wont show my Topic?

G

Guest

I want to show a specific help page in a .chm file from vb.net. This code
shows the .chm file but it just goes to the first page or shows an error on
the page:

Help.ShowHelp(Me, "myhelp.chm", HelpNavigator.Topic, "A Quick Tour")

or Help.ShowHelp(Me, "myhelp.chm", HelpNavigator.Topic,
"aquicktour.htm")

or all combinations of contents, index, etc. I cant seem to go to a specific
page. The .chm file is created in doc to help and I look there for the topic
name etc.

Do I have to turn something on first in vb.net or do something special in
doc to help for the .chm file? Do I not have the right topic name? The topics
pages are there in the .chm, I just cant jump to them from vb?

Searching the desert always leaves me with the same lines of code. What am I
missing here?

Thanks,

Tom
 
G

Guest

Hi,
If you are using HelpNavigator.Topic then in last paarameter TopicId should
come.If you are using keyword then you should use following syntax:
' Display the help page for a specific keyword.
Help.ShowHelp(Me, "c:\myhelpfile.chm", "mykeyword")

The other method, ShowHelp, is overloaded to provide access to different
portions of the help document:
' Display the contents of the help file.
Help.ShowHelp(Me, "c:\myhelpfile.chm")
' Display the index page of the help file.
Help.ShowHelp(Me, "c:\myhelpfile.chm", HelpNavigator.Index)
' Display the search page of the help file.
Help.ShowHelp(Me, "c:\myhelpfile.chm", HelpNavigator.Find)
' Display the help page for a specific keyword.
Help.ShowHelp(Me, "c:\myhelpfile.chm", "mykeyword")
' Display the help page for the specific topic #123.
Help.ShowHelp(Me, "c:\myhelpfile.chm", HelpNavigator.Topic, 123)
 
G

Guest

Thanks,

But that is the code that does not work. It shows the help file but it dont
go to the topic. ie when I use:
Help.ShowHelp(Me, "c:\myhelpfile.chm", HelpNavigator.Topic, 123)

I dont get topic 123. I just get the first page in the .chm file. I guess I
am not getting the topic id right. I made the help file in doc to help and
they show the topics and ids but nothing works.

I am also looking at the .chm file with help workshop but all seems fine and
I am not sure what to look for anyway. Where does help workshop show me the
ids?

Or there has to be a setting somewhere I dont have on?

Does it matter if there is a help provider control on the form?

Still lost in the desert and all I ever find is that same old sorry line of
not working code...

Tom
 
G

Guest

For anyone interested I found the problem was indeed doc to help settings. I
had to remake my project and turn on "create context" and various other help
ids. Go figure. I thought thats what I bought doc 2 help to create help links?

Not to put doc 2 help down, I have just started with it and it is already a
great help.
 

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