473,473 Members | 1,573 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Integrating with CHM File

I have added a HelpProvider to my GUI. And I have been able to
successfully load the file using the following code:

protected override bool ProcessDialogKey(Keys keyData)
{
bool rv = false;
if (keyData == Keys.F1)
{
Help.ShowHelp(
this,
helpProvider.HelpNamespace);
rv = true;
}
return rv;
}

However, I'd like for the Help to open to specific topic. I am using
a program called Word-2-CHM (by MacroObject) to convert Word files to
CHM files. And it does a great job. It provides me with a .cs file
that contains a bunch of enums for each of the .htm files within the
CHM file. So for example, one enum is "HID_Playbox = 1041" where the
associated help file is "1041.htm" within the CHM file. How does the
Help.ShowHelp() operation support the ability to show this specific
location?

Nov 26 '07 #1
2 1973
Oh never mind ... figured it out by trial and error:

protected override bool ProcessDialogKey(Keys keyData)
{
bool rv = false;
if (keyData == Keys.F1)
{
Help.ShowHelp(this,
helpProvider.HelpNamespace,
HelpNavigator.Topic,
(int)HelpIdDefines.HID_Playbox + ".htm");
rv = true;
}
return rv;
}
On Nov 26, 2:56 pm, "O.B." <funkj...@bellsouth.netwrote:
I have added a HelpProvider to my GUI. And I have been able to
successfully load the file using the following code:

protected override bool ProcessDialogKey(Keys keyData)
{
bool rv = false;
if (keyData == Keys.F1)
{
Help.ShowHelp(
this,
helpProvider.HelpNamespace);
rv = true;
}
return rv;

}

However, I'd like for the Help to open to specific topic. I am using
a program called Word-2-CHM (by MacroObject) to convert Word files to
CHM files. And it does a great job. It provides me with a .cs file
that contains a bunch of enums for each of the .htm files within the
CHM file. So for example, one enum is "HID_Playbox = 1041" where the
associated help file is "1041.htm" within the CHM file. How does the
Help.ShowHelp() operation support the ability to show this specific
location?
Nov 26 '07 #2
Hi funkjunk

It can be simple by the HelpRequested event

private void Radiospeler_HelpRequested(object sender, HelpEventArgs
hlpevent)
{
Help.ShowHelp(this, "Radio speler.chm");
}

rinaldo

"O.B." <fu******@bellsouth.netschreef in bericht
news:87**********************************@w34g2000 hsg.googlegroups.com...
>I have added a HelpProvider to my GUI. And I have been able to
successfully load the file using the following code:

protected override bool ProcessDialogKey(Keys keyData)
{
bool rv = false;
if (keyData == Keys.F1)
{
Help.ShowHelp(
this,
helpProvider.HelpNamespace);
rv = true;
}
return rv;
}

However, I'd like for the Help to open to specific topic. I am using
a program called Word-2-CHM (by MacroObject) to convert Word files to
CHM files. And it does a great job. It provides me with a .cs file
that contains a bunch of enums for each of the .htm files within the
CHM file. So for example, one enum is "HID_Playbox = 1041" where the
associated help file is "1041.htm" within the CHM file. How does the
Help.ShowHelp() operation support the ability to show this specific
location?

Nov 26 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Mayhem | last post by:
I would like to integrate an RSS newsfeed into my website but can't seem to figure out how. Has anyone got any pointers for me? E.
2
by: news | last post by:
We're being asked to get Quickbooks Enterprise edition for our business. We use a completely hand-made online store (PHP and mySQL) and used to simply create CSV sheets that were imported as...
12
by: Woodster | last post by:
I currently have some code for an application that is running on Win32. I have tried to keep anything not directly gui related as separate as possible for portability reasons, including file...
3
by: Sonoman | last post by:
Hi all: Is there a class or function that I could use to integrate? By integrating , I mean calculus integration. I need to get data from a sensor that gives me the acceleration of an object. In...
1
by: Frank Rizzo | last post by:
Hello, There is a solution with a couple of c# projects in my local VSS. They were added to VSS independent of VS.NET IDE. How can I now open the solution in VS.NET IDE from VSS? I am trying...
4
by: karpagam | last post by:
Since WebServices are a standardized way to invoke a method of another application over the internet, is there a way to integrate two different applications running on different platforms (Say a...
4
by: RossettoeCioccolato | last post by:
I don't suppose that we have made any progress--since I last asked this question about a year ago--towards integrating driver development into the Visual Studio 8.0 build environment. The new...
2
by: dvestal | last post by:
Suppose I have a proprietary language file, with, say, a .xyz extension. This file coexists with other .cs files in a C# project. Is it possible to extend Visual Studio such that it will, upon...
2
by: Sam Denton | last post by:
Code generators seem to be popular in Python. (http://www.google.com/search?q=python+code-generator) I have one that I'd like to integrate into IDLE. Ideally, I'd like to (1) have a new file...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.