473,394 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

How to Read .CHM file using C# 2005

hi I have made a CHM file and I have linked my .CHM file with the controls on
the Form in my application which is made in C# 2005. Its working fine . But I
want that if user presses 'F1' then when the help is opening i want the
contents of help file which is opening, so that I can get the content of a
help file in a string array which is opening.
Currently I am using "HTML help workshop 4.74" and VS2005(C#).
Can any one help me how to get the contents of a help file when help file is
requested by the user by pressing 'F1'.
If any one has got any idea how to implement this please lemme know.

Thanks in Advance

Oct 1 '06 #1
2 6540
quicklearner wrote:
hi I have made a CHM file and I have linked my .CHM file with the
controls on the Form in my application which is made in C# 2005. Its
working fine . But I want that if user presses 'F1' then when the
help is opening i want the contents of help file which is opening, so
that I can get the content of a help file in a string array which is
opening. Currently I am using "HTML help workshop 4.74" and
VS2005(C#). Can any one help me how to get the contents of a help
file when help file is requested by the user by pressing 'F1'.
If any one has got any idea how to implement this please lemme know.
The old trick used for these kind of things still works: simply
'execute' the .chm file using a system process start. Windows will then
do an 'open' of the file, and as it's not a .exe, it will run the
application associated with the extension, so it will open the chm
viewer. :)

FB
--
------------------------------------------------------------------------
Lead developer of LLBLGen Pro, the productive O/R mapper for .NET
LLBLGen Pro website: http://www.llblgen.com
My .NET blog: http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------
Oct 1 '06 #2
Thanx for u r concern.
Frans I m using MSAgent I want to narrate the content that is present in the
help file by MSAgent. For that I have made dummy application for MS agent it
is wrking fine. But I want that MSAgent should speak the content that is
present in the CHM file and to speak those contents we have to pass the text
to the agent so that agent can speak out the content in the help file.
For That i wanna know that how to get the contents of a help file before the
help file is opening.

Thanks

"Frans Bouma [C# MVP]" wrote:
quicklearner wrote:
hi I have made a CHM file and I have linked my .CHM file with the
controls on the Form in my application which is made in C# 2005. Its
working fine . But I want that if user presses 'F1' then when the
help is opening i want the contents of help file which is opening, so
that I can get the content of a help file in a string array which is
opening. Currently I am using "HTML help workshop 4.74" and
VS2005(C#). Can any one help me how to get the contents of a help
file when help file is requested by the user by pressing 'F1'.
If any one has got any idea how to implement this please lemme know.

The old trick used for these kind of things still works: simply
'execute' the .chm file using a system process start. Windows will then
do an 'open' of the file, and as it's not a .exe, it will run the
application associated with the extension, so it will open the chm
viewer. :)

FB
--
------------------------------------------------------------------------
Lead developer of LLBLGen Pro, the productive O/R mapper for .NET
LLBLGen Pro website: http://www.llblgen.com
My .NET blog: http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------
Oct 1 '06 #3

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

Similar topics

3
by: Albert Tu | last post by:
Dear there, We have an x-ray CT system. The acquisition computer acquires x-ray projections and outputs multiple data files in binary format (2-byte unsigned integer) such as projection0.raw,...
4
by: pisscot | last post by:
Lind Apr 13, 6:32 am show options Newsgroups: comp.lang.c From: piss...@gmail.com (Lind) - Find messages by this author Date: 13 Apr 2005 06:32:15 -0700 Local: Wed,Apr 13 2005 6:32 am...
18
by: jas | last post by:
Hi, I would like to start a new process and be able to read/write from/to it. I have tried things like... import subprocess as sp p = sp.Popen("cmd.exe", stdout=sp.PIPE)...
14
by: Mark Broadbent | last post by:
Does anybody know what is (factual please -not just guess) the quickest method to read data from a file? I am not interested in the format of the data (i.e. blocks, bytes, string etc) just that the...
1
by: vkrasner | last post by:
It works with VS2003 and does not in VS2005: in VS2003 : string sMyvalue = ConfigurationSettings.AppSettings; in VS2005 (does not work!!) string sMyvalue = ConfigurationManager.AppSettings; ...
4
by: xenny | last post by:
Hi, I'm trying to see if a file (exportfile) is set to read only using File::GetAttributes: if ((File::GetAttributes(exportfile.c_str()) & FileAttributes::ReadOnly) != 0); {...
4
by: Antonio Tirado | last post by:
Hi, I'm using the OleDB namespace to open a CSV File. I can read the file sucessfully except for hyphenated values. My CSV File contains phone numbers and sometimes these come separated with...
6
by: citlaly | last post by:
Hi!! I'm a beginner in python and I'm trying to use the files from a "folder" as a list. What I want to do is read each one as a list, but just the name of the file, the data inside doesn't...
7
by: Tracks | last post by:
I have old legacy code from vb5 where data was written to a file with a variant declaration (this was actually a coding error?)... in vb5 the code was: Dim thisdata as integer Dim thatdata...
0
by: ttamilvanan81 | last post by:
Hai, I am doing a Struts application. In this application, i need to read a dbf file(foxpro database file) and it will be write to the SQL Server 2005. The application administrator will be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.