I am having strange behavior using HTML help in an application...
My application is an specialized editor, and when a user highlights text in the editor and then presses <F1>, I want to open up an HTML help file, to the appropriate topic. So my code on the form inside the event looks like this...
Help.ShowHelp(Me, HelpFileLocation, HelpNavigator.KeywordIndex, SelectedText)
It works great when there is only one topic in the help file's index for the selectedtext. When there is more than one topic for that keyword, an additional dialog opens entitled "Topics Found", which does display the multiple topics as expected. The problem is that this window (and now my application) are completely locked up, leaving me no recourse but to end the task.
So far, to troubleshoot, I have tried...
Using one of the built-in help files (for mspaint) to make sure that I do not have a corrupt help file. - same result
Using the sample help invocation form from MSDN help (with my help file and mspaint) to minimize (probably not eliminate
) the chance of an ID10T error with my code - same result
Installing the compiled application on another PC, to make sure hte problem is not with my PC - same results.
Made the MSDN sample form the startup form for the project so that no other code is running. - same results.
Using form.Invoke and form.BeginInvoke to make sure there are no strange threading issues - same results.
Created another hidden form to use as the first parameter in the ShowHelp method, which did succeed in removing the modal effects of the help window, but still the same results when given the choice for multiple topics.
FYI, I would also be happy to run HH.exe through a SHELL command or any other method to get the desired results, but I have not yet seen any way of activiating HH.exe to open using index keywords.
Has anyone else seen this before, or have any suggestions?
Thank you in advance and best regards!