Visual Basic Template Wrong!

Word-2-CHM Converter

Visual Basic Template Wrong!


csPain 04-27-2010, 9:13 AM
The template supplied with the original install Visual Basic.bas is NOT a VB6 file it is VB.NET

In fact it is an exact copy of the .NET vb file

This is not much use as VB6 and VB.NET are different.

Also I cannot find the project.ini file?

I have logged this to support but there is no response. Where can I get the correct template? The Topic "Using Html Help API" does not even mention API's - why is it called that? There are lots of topics in the help file about how only pro makes ID's but nothing about what to do with them - circular help - you just go round and round and end up where you started - having learnt nothing! I have paid for this and I am not impressed!

Re: Visual Basic Template Wrong!


Peter 04-28-2010, 8:44 AM
The template is right. The syntax of Enum in VB is the same as in VB.NET.

Here are some tips for using CHM in Visual Basic:

1. Connect to the .chm file by setting the App.HelpFile property:
    App.HelpFile = App.Path & "\theHelpFile.chm"

2. To display a help topic when user presses F1
  a. Set the form's WhatsThisHelp property to False.
  b. Assign the TopicId (defined in the created .bas file) to the HelpContextID property of the form or controls on the form.

3. To display a help topic from within your Visual Basic code
  a. Declare the function HtmlHelp  like this:
    Public Declare Function HTMLHelp Lib "hhctrl.ocx" Alias "HtmlHelpA" (ByVal hwnd As Long, ByVal lpHelpFile As String, ByVal wCommand As Long, dwData As Any) As Long
    Public Const HH_DISPLAY_TOPIC = &H0
    Public Const HH_HELP_CONTEXT = &HF

  b. Call the function HtmlHelp to show the help topic:
    HtmlHelp(frmTheFormName.hWnd, App.HelpFile, HH_HELP_CONTEXT, ByVal CLng(theTopicId))

Powered by Community Server, by Telligent Systems