Improve company productivity with a Business Account.Sign Up

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 360
  • Last Modified:

How to open a topic, VB6-RoboHelp-OSWinHelp


I use the OSWinHelp Me.hwnd, App.HelpFile, 261, 0 to open the helpfile.
But how to do if I like to open a specific help topic?
1 Solution
janneaAuthor Commented:
I guess this is the one, but...

OSWinHelp Me.hwnd, App.HelpFile, &H1, "Where do i find this parameter?"
I'm not sure to understand, but if you can put the Topic'snumber in the HelpContextId's property in Vb natuerlly; and press F1 to access it.
janneaAuthor Commented:
Adjusted points to 100
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

janneaAuthor Commented:
I will use it to open upp specific help topic's, eg when pressing help button in a dialog.
If I understand you correctly,...

This following code shows how the Common Dialog is used to display a particular topic in a help file:

With cdlHelp
  .HelpFile = App.Path & "\Test.hlp"
  .HelpCommand = cdlHelpContext
  .HelpContext = 110  'display a specific topic
End With

If you want to look for a particular keyword, use cdlHelpKey.

If for a keyword starting with a specific letter, use cdlHelpPartialKey.

Is that what you are asking for?
janneaAuthor Commented:
Ruchi, Yes I guess so.

But when i copy My TopicID from Robohelp .HelpContext="IDH_Tidbokning_Välkommen_till_Tidbokning" it dosent work.

Were do I find the numeric value for the topic ID?
I just learned this concept from the book today as I was preparing for the Microsoft Certification examination. I pasted the code from the book... But, I'd suggest you to go to
This is a very good example how to use Help Context Properties, etc.

Hope this helps you.
janneaAuthor Commented:
Thanks I did get the numericID's from the hh-File
This is not ContextID, this is Context String. This string is unigue for each topic and use INTERNALLY in WinHelp. You can find ContextID for your topic with mentioned Context String at [MAP] section of your .hpj file. I don't know Robohelp interface, but I'm sure that each topic MUST have unique ID and Context String. If RoboHelp hide ID for topics (why?), you may try to compile project not to .hlp, but to .hpj file (as far as i know many help tools allow to do this). And if nothing above can not help you, you can decompile you project, using help decompilers (you can find them at Then open .hpj file in any text editor (Notepad is OK) and look at [MAP] section

janneaAuthor Commented:
Ark, thanks but I have alredy solved it..
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now