Hi,
I am having some problems with displaying the search page of the help file.
The code I am using is given below:
string path = Application.StartupPath;
path = path + "\\help\\" + "DirectX9_c.chm";
string theText = ((MenuItem)sender).Text;
if(theText.IndexOf("Contents")>= 0)Help.ShowHelp(this, path,
HelpNavigator.TableOfContents);
if(theText.IndexOf("Index")>= 0)Help.ShowHelp(this, path,
HelpNavigator.Index);
if(theText.IndexOf("Search")>= 0)Help.ShowHelp(this, path,
HelpNavigator.Find);
I have 3 menu items, and with the above given code the 'Contents' and
'Index' page are displayed properly but when one clicks on the Search menu,
no help file is displayed.
Could someone please let me know what the problem is ?
TIA,
Gary