By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,007 Members | 1,066 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,007 IT Pros & Developers. It's quick & easy.

ShowHelp wont show my Topic?

P: n/a
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
Jun 17 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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)
--
Hope this answers your question
Thanks and Regards.
Manish Bafna.
MCP and MCTS.

"Tracks" wrote:
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

Jun 18 '07 #2

P: n/a
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
"Manish Bafna" wrote:
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)
--
Hope this answers your question
Thanks and Regards.
Manish Bafna.
MCP and MCTS.

"Tracks" wrote:
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
Jun 18 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.