<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : HelpContext</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : HelpContext]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 15:44:36 +0000</pubDate>
  <lastBuildDate>Thu, 28 Jan 2010 12:12:07 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=16075</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[HelpContext :   joeliner wrote:Hi Mr. Den,Thanks...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16075&amp;PID=56420&amp;title=helpcontext#56420</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3253">Mr.Den</a><br /><strong>Subject:</strong> 16075<br /><strong>Posted:</strong> 28 January 2010 at 12:12pm<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by joeliner" alt="Originally posted by joeliner" style="vertical-align: text-bottom;" /> <strong>joeliner wrote:</strong><br /><br />Hi Mr. Den,<BR><BR>Thanks for your input<BR><BR>@ first i had tried out the CJ way using this code. The help shows but i cannot show a specific page using the helpcontext command<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With CommonDialog<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .HelpFile = App.Path &amp; "\somehelp.chm"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .DialogStyle = 1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .helpcommand = 1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .HelpContext = 1001<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Flags = 0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .showhelp<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<BR><BR>For API I was using <BR><BR>Public Declare Function HtmlHelp Lib "hhctrl.ocx" _<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Alias "HtmlHelpA" _<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (ByVal hwndCaller As Long, _<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ByVal pszFile As String, _<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ByVal uCommand As Long, _<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ByVal dwData As Long) _<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; As Long<BR><BR>which works for for both chm and winhelp.<BR><BR>My main interest was on how i can navigate to a specific page on the help. <BR><BR>regards,<BR></td></tr></table> <DIV></DIV><DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>Using the code I gave you above:</DIV><DIV>&nbsp;</DIV><DIV>Adding to the declarations:</DIV><DIV>&nbsp;&nbsp;&nbsp; </DIV><DIV>&nbsp;&nbsp;&nbsp; Public Declare Function HtmlHelp Lib "hhctrl.ocx" _<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Alias "HtmlHelpA" _<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (ByVal hwndCaller As Long, _<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ByVal pszFile As String, _<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ByVal uCommand As Long, _<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ByVal dwData As Long) _<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; As Long</DIV><DIV>&nbsp;</DIV><DIV>I change this line:</DIV><DIV>WinHelp App.hInstance, SetHelpStrings(intHelpFile), 1, lngContextID</DIV><DIV>&nbsp;</DIV><DIV>to:</DIV><DIV><DIV>HtmlHelp App.hInstance, SetHelpStrings(intHelpFile), 1, lngContextID</DIV><DIV>&nbsp;</DIV><DIV>And the code works&nbsp;properly for .hlp files, have you tried that on a .chm file?</DIV></DIV>]]>
   </description>
   <pubDate>Thu, 28 Jan 2010 12:12:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16075&amp;PID=56420&amp;title=helpcontext#56420</guid>
  </item> 
  <item>
   <title><![CDATA[HelpContext : Hi Mr. Den,Thanks for your input@...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16075&amp;PID=56393&amp;title=helpcontext#56393</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2090">joeliner</a><br /><strong>Subject:</strong> 16075<br /><strong>Posted:</strong> 27 January 2010 at 10:07am<br /><br />Hi Mr. Den,<br><br>Thanks for your input<br><br>@ first i had tried out the CJ way using this code. The help shows but i cannot show a specific page using the helpcontext command<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With CommonDialog<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .HelpFile = App.Path &amp; "\somehelp.chm"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .DialogStyle = 1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .helpcommand = 1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .HelpContext = 1001<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Flags = 0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .showhelp<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<br><br>For API I was using <br><br>Public Declare Function HtmlHelp Lib "hhctrl.ocx" _<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Alias "HtmlHelpA" _<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (ByVal hwndCaller As Long, _<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ByVal pszFile As String, _<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ByVal uCommand As Long, _<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ByVal dwData As Long) _<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; As Long<br><br>which works for for both chm and winhelp.<br><br>My main interest was on how i can navigate to a specific page on the help. <br><br>regards,<br>]]>
   </description>
   <pubDate>Wed, 27 Jan 2010 10:07:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16075&amp;PID=56393&amp;title=helpcontext#56393</guid>
  </item> 
  <item>
   <title><![CDATA[HelpContext : Found code faster than I thought...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16075&amp;PID=56364&amp;title=helpcontext#56364</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3253">Mr.Den</a><br /><strong>Subject:</strong> 16075<br /><strong>Posted:</strong> 26 January 2010 at 12:45pm<br /><br /><P>Found code faster than I thought I would <img src="http://forum.codejock.com/smileys/smiley1.gif" border="0"></P><DIV>This code works with .hlp files, try it with the .chm files and see if it works. Not sure, but worth a shot.</DIV><DIV>&nbsp;</DIV><DIV>'WINHELP DECLARATION<BR>Public Declare Function WinHelp Lib "user32" Alias "WinHelpA" _<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (ByVal HWND As Long, ByVal lpHelpFile As String, _<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ByVal wCommand As Long, ByVal dwData As Long) As Long</DIV><DIV>&nbsp;</DIV><DIV>Public Const HELP_CONTENTS = 3<BR>Public Const HELP_FINDER = 11</DIV><DIV>&nbsp;</DIV><DIV>'IN A MODULE</DIV><DIV>Public Sub ShowHelpContextID(ByVal intHelpFile As Integer, lngContextID As Long)</DIV><DIV>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; ' Open the help file using the<BR>&nbsp;&nbsp;&nbsp; ' HELP_CONTEXT constant (1)<BR>&nbsp;&nbsp;&nbsp; </DIV><DIV>&nbsp;&nbsp;&nbsp; WinHelp App.hInstance, SetHelpStrings(intHelpFile), 1, lngContextID</DIV><DIV>&nbsp;&nbsp;&nbsp; <BR>End Sub</DIV><DIV>&nbsp;</DIV><DIV>Public Function SetHelpStrings(ByVal intSelHelpFile As Integer) As String</DIV><DIV>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; ' Set the string variable to<BR>&nbsp;&nbsp;&nbsp; ' include the application path<BR>&nbsp;&nbsp;&nbsp; </DIV><DIV>&nbsp;&nbsp;&nbsp; Select Case intSelHelpFile</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case 1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SetHelpStrings = App.Path &amp; "\Res\Backup.hlp"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case 2<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' Place other Help file paths in successive Case statements<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SetHelpStrings = App.Path &amp; "\Res\Restore.hlp"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp; End Select<BR>&nbsp; <BR>End Function</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 26 Jan 2010 12:45:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16075&amp;PID=56364&amp;title=helpcontext#56364</guid>
  </item> 
  <item>
   <title><![CDATA[HelpContext : Try:   Shell &amp;#034;rundll32.exe...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16075&amp;PID=56363&amp;title=helpcontext#56363</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3253">Mr.Den</a><br /><strong>Subject:</strong> 16075<br /><strong>Posted:</strong> 26 January 2010 at 12:31pm<br /><br />Try: <DIV>&nbsp;</DIV><DIV>Shell "rundll32.exe url.dll,FileProtocolHandler C:\WINDOWS\Help\access.chm", vbNormalFocus</DIV><DIV>&nbsp;</DIV><DIV>change C:\WINDOWS\Help\access.chm to the path/filename you need.</DIV><DIV>&nbsp;</DIV><DIV>A start to get the file up, I have code somewhere to specify but cannot look now, will check after lunch.</DIV>]]>
   </description>
   <pubDate>Tue, 26 Jan 2010 12:31:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16075&amp;PID=56363&amp;title=helpcontext#56363</guid>
  </item> 
  <item>
   <title><![CDATA[HelpContext : Hi guysAm trying to access chm...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16075&amp;PID=56354&amp;title=helpcontext#56354</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2090">joeliner</a><br /><strong>Subject:</strong> 16075<br /><strong>Posted:</strong> 26 January 2010 at 4:11am<br /><br />Hi guys<br><br>Am trying to access chm help file by specifying the helpcommand and helpcontext but no success<br><br>Anyone who has done it?<br><br>regards,<br><br><br>]]>
   </description>
   <pubDate>Tue, 26 Jan 2010 04:11:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16075&amp;PID=56354&amp;title=helpcontext#56354</guid>
  </item> 
 </channel>
</rss>