473,288 Members | 1,771 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,288 software developers and data experts.

ShowHelp wont show my Topic?

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
2 10722
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: ask josephsen | last post by:
Hi there Can anyone help me make my rss feed show characters like "ÆØÅæøå"? According to http://aggregator.userland.com/validator the feed is fine and it works fine in a dedicated reader. But...
0
by: Peter Bailey | last post by:
I have a query that supplies info to a chart on an input form : everything works fine however my boss wanted the dataset on the form below the graph (the chart dataset is awful its all squidged up)...
1
by: Brian Henry | last post by:
I am using VS 2005, when i started using it, the controls showed up from all my libraries on the toolbox (custom user controls) by themselves... now they wont at all they just out of no where...
0
by: David van der kooij | last post by:
Hi, I have a webservice that returns an xmldocument. I write some processing isntructions to this xmldocument like this XmlProcessingInstruction myPI3; PItext = "progid='InfoPath.Document'";...
5
by: Robert | last post by:
Arggg... I have a report that calls up numbers from two subreports. One deals with project labor the other expenses. on each subreport, there is a calc fields that sums cost and price. the main...
2
by: ConieFL | last post by:
I have form that will not display the minimize button in the upper left portion of the window. I have set the minimize on the foms properties to true. But i will not show.
0
by: qutspan | last post by:
When I create taskbox on the form the line beside the box wont show up. it show up untill I have MouseEnter event occur. Also when I have 2 taskbox on the form it does draw the line around the...
4
by: Cirene | last post by:
I have javascript code that does an alert on a public asp.net var... alert("<%=strMessage%>"); The code runs whenever my ajax related code completes. I declared the public var like this......
2
KeredDrahcir
by: KeredDrahcir | last post by:
I'm using the object tag to show a video. In IE it shows the controls but in Firefox it doesn't. Does anyone know why, and how I can show the controls? <object type='video/x-ms-wmv'...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.