c# - How to display search with Help.ShowHelp? -


in code contents , index working search doesn't.i not sure helpnavigator.find ok? there other way display search chm file?

using system; using system.collections.generic; using system.componentmodel; using system.data; using system.drawing; using system.linq; using system.text; using system.windows.forms;  namespace spomenik {     public partial class pomoc : form     {         public pomoc()         {             initializecomponent();         }          private void help_click(object sender, eventargs e)         {             system.windows.forms.help.showhelp(this, "..\\..\\slika\\spomenikpomoc.chm");              //help.show(this, "..\\..\\slika\\spomenikpomoc.chm"); ne radi jer mi je naziv dugmeta         }          private void index_click(object sender, eventargs e)         {             system.windows.forms.help.showhelpindex(this, "..\\..\\slika\\spomenikpomoc.chm");         }          private void search_click(object sender, eventargs e)         {             **system.windows.forms.help.showhelp(this, "..\\..\\slika\\spomenikpomoc.chm", helpnavigator.find);**         }     } } 

specify empty string ("") last parameter:

help.showhelp(this, "..\\..\\slika\\spomenikpomoc.chm", helpnavigator.find, ""); 


help.showhelp method (control, string, helpnavigator, object):

if value specified in command parameter tableofcontents, index, or find, value should empty string.

reflector shows showhelp version 3 parameters uses null 4th parameter, rather "". why find doesn't work. need use "full" method version needed parameters.


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -