Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Struggle with System.Windows.Forms.Help

Status
Not open for further replies.

MKuiper

Programmer
Jan 29, 2002
364
NL
Moving our existing application to the .NET environment, I am trying to build in the online help feature.

The old application is calling the HtmlHelp API which is working fine (enough), for example HtmlHelp ( hDlg, "blabla.chm", HH_HELP_CONTEXT, dwTopicID );

In the new application (VS2005, C#) I try to do this calling the static method System.Windows.Forms.Help.ShowHelp ( helpParent, "blabla.chm", Helpnavigator.TopicID, topicID.ToString ( ));

There are two problems:

1. The help-window shows up as topmost window of the application. The application can only be seen if help is minimized or closed. No matter if the first parameter is null, a control or the form. The only workaround for this seems to be creating an instance of a control, not placing that on the form and pass that control as first parameter. Not nice but working ...

2. More important, because I have no workaround for this: When navigating through the helpfile, clicking a link which should go to another page of the same helpfile, the system freezes for half a minute, after that it returns an "Out of memory" message (there's only 2GB RAM inside) and exits the help window, also taking my application down in it's misery.

In the new application I use the same .chm file as in the old application so that should not be the problem.

Who knows what is going on here and what can I do about it?

Thanks in advance,

Marcel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top