Associating an icon with the help window

This section is for programmers. Please use it for all discussons on interfacing help with your applications and related subjects.

Moderators: Alexander Halser, Michael Schwarzl

Post Reply
Rennie Petersen
Posts: 8
Joined: Tue May 29, 2007 6:28 pm

Associating an icon with the help window

Unread post by Rennie Petersen »

My application is in C#, and I invoke the help file (chm) using the following:

HelpNavigator helpNavigator = HelpNavigator.TableOfContents;
Help.ShowHelp(this, s, helpNavigator);

The icon associated with the help window is the same as the application's icon.

I would like to associate a different icon with the help window. One that contains a question mark, for example.

Is this possible? Do you imbed the icon in the help file, and if so, how? Or do you associate the icon at invocation time, and if so, how?

Thanks.

Rennie
User avatar
Alexander Halser
EC-Software Support
Posts: 4098
Joined: Mon Jun 24, 2002 7:24 pm
Location: Salzburg, Austria
Contact:

Unread post by Alexander Halser »

The help file should actually use its own icon - a yellow question mark with a tiny white page. Does the online help from a C# application take the icon from the application that called it?

If so, I don't know how to change it. But there is certainly no way to include a custom icon into the CHM file. Such an option does not exist in the CHM specification.
Alexander Halser
Senior Software Architect, EC Software GmbH
Rennie Petersen
Posts: 8
Joined: Tue May 29, 2007 6:28 pm

Re: Associating an icon with the help window

Unread post by Rennie Petersen »

"Better late than never?"

I'm here looking for the solution to another problem, and came across this old posting of mine, from six and a half years ago!

I did eventually find a solution to this problem, so here are a couple of links that might be useful for anyone who stumbles across this thread:

http://stackoverflow.com/questions/9199 ... other-apps
http://stackoverflow.com/questions/3568 ... in-windows
Post Reply