Welcome to Macrobject Community Login | Register | Faq  

    Macrobject Community
  Macrobject Software Knowledge Management and Collaboration Platform
Search    
   

Visual Basic Template Wrong!
Started by csPain at 04-27-2010 9:13 AM. Topic has 1 replies.

Print Search « Previous Thread Next Thread »
  04-27-2010, 9:13 AM
csPain is not online. Last active: 1/12/2011 6:44:39 PM csPain

Top 200 Posts
Joined on 04-24-2010
Posts 1
Visual Basic Template Wrong!
Reply Quote
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!
   Report 
  04-28-2010, 8:44 AM
Peter is not online. Last active: 10/31/2011 9:51:29 AM Peter

Top 10 Posts
Joined on 09-27-2007
Posts 171
Re: Visual Basic Template Wrong!
Reply Quote
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))

   Report 
Post
Macrobject Comm... » Help Authoring ... » Word-2-CHM Conv... » Visual Basic Template Wrong!

Powered by Community Server, by Telligent Systems