HelpProvider issue when using keywords with spaces in them  
Author Message
Jeremy Jarrell





PostPosted: Visual C# General, HelpProvider issue when using keywords with spaces in them Top

Hi

I'm working with a 3rd party CHM file (from a co-contractor) and am having trouble using the KeywordIndex style of linking in the help file. I find that setting the HelpProvider's HelpNavigator property to KeywordIndex and setting the HelpKeyword to the appropriate entry works fine when the HelpKeyword is a single word but doesn't seem to work if the HelpKeyword is made up of more than 1 word. The CHM file still opens to the index, it just opens to the first entry in the index and doesn't associate the keyword correctly. Here's my code for reference...

// This doesn't locate the appropriate entry

this.hlpHelpProvider.SetHelpKeyword(this.importMethodPage, "Importing Satellites");

// This however works fine

this.hlpHelpProvider.SetHelpKeyword(this.importMethodPage, "Options");

Is there some trick to providing keywords with a space in them Any help would be appreciated.

Thanks!

Jeremy




Visual C#14  
 
 
jjardine





PostPosted: Visual C# General, HelpProvider issue when using keywords with spaces in them Top

Is it possible to put quotes around the keywordindex maybe do "\"Importing Satellites\"" instead of "Importing Satellites"
 
 
Jeremy Jarrell





PostPosted: Visual C# General, HelpProvider issue when using keywords with spaces in them Top

Hmm, that's a very good idea. Unfortunately it didn't work when I tried it (much to my surprise).

Thanks for the response, though!



 
 
louthy





PostPosted: Visual C# General, HelpProvider issue when using keywords with spaces in them Top

The documentation does explicitly say "keyword", so I doubt you can pass more than one keyword to that method.