Windows Develop Bookmark and Share   
 index > Windows Forms General > context specific help
 

context specific help

Hi !!

pls help out ...

System.Windows.Forms.

Help.ShowHelp(this, @"c:\someHelp.hlp", HelpNavigator.TopicId,505);.. doesnot work (doesnt open the topic, opens only the file)

WinHelp(

new IntPtr(0).ToInt32(), @"c:\someHelp.hlp", HELP_CONTEXT, 505); .. works .. calls the api as below

migrating for VB 6.0 to .net 2008

[

DllImport("user32", EntryPoint = "WinHelp")]

public static extern bool WinHelp(int hwnd, string lpHelpFile, int wCommand, int dwData);

Sabyasachi_1986  Friday, September 04, 2009 12:35 PM
I am afraid TopicId is only supported for chm help files, not hlp files. I think you are stuck with invoking the "old-style" WinHelp function until you have migrated your help files to chm format.
Geert van Horrik - CatenaLogic
Visit my blog: http://blog.catenalogic.com

Looking for a way to deploy your updates to all your clients? Try Updater!
Geert van Horrik  Friday, September 04, 2009 1:46 PM
Use HelpNavigator.Topic instead of HelpNavigator.TopicId.
Geert van Horrik - CatenaLogic
Visit my blog: http://blog.catenalogic.com

Looking for a way to deploy your updates to all your clients? Try Updater!
Geert van Horrik  Friday, September 04, 2009 12:43 PM
I dont have the Topic names/ URL
Replacicing TopicId by topic produces the same result.

P.S. I am migrating existing code which has Topic IDs as constant string that i plan to use
Sabyasachi_1986  Friday, September 04, 2009 12:48 PM
I am afraid TopicId is only supported for chm help files, not hlp files. I think you are stuck with invoking the "old-style" WinHelp function until you have migrated your help files to chm format.
Geert van Horrik - CatenaLogic
Visit my blog: http://blog.catenalogic.com

Looking for a way to deploy your updates to all your clients? Try Updater!
Geert van Horrik  Friday, September 04, 2009 1:46 PM

I also test on my side and also search on the internet. Seems the .hlp file doesn’t support HelpNavigator search. Also suggest you to convert the .hlp file to .chm format.

You can refer to the following:

http://www.bestshareware.net/howto/convert-hlp-to-chm.htm

Best regards,

Ling Wang


Please remember to click “Mark as Answer�on the post that helps you, and to click “Unmark as Answer�if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Ling Wang  Friday, September 11, 2009 10:27 AM

You can use google to search for other answers

Custom Search

More Threads

• Can a Listbox do this?
• Access Main Form Variables From Child
• Speed Limit of Message Pump
• problem with MHT file has been created from local HTML files
• Preventing a selected row in a datagridview upon loading
• Changes made to collection not reflected to the DataGridView
• how to navigate to an internal archor
• Keeping One Window On Top Of Another
• Invoking Validate on Control
• Property grid - is there any possiblity to display some property like a link label (it should be readonly)?