473,722 Members | 2,430 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 6549
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
3719
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, projection1.raw, projection2.raw ... up to projection500.raw. Each file is 2*1024*768-byte big. I would like to read those files and convert to ascii files in %5.0f/n format as projection0.data ... projection500.data so that our
4
1860
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 Subject: how to read it out using c++ Reply | Reply to Author | Forward | Print | Individual Message | Show original | Remove | Report Abuse
18
4890
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) p.stdin.write("hostname\n") however, it doesn't seem to work. I think the cmd.exe is catching it.
14
9121
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 IO to read the data is very quick. I am currently using a Streamreader and have found the readline method to perform slightly better than the read method (although it is nice to have the read's granuality of one byte). Is there any faster reader...
1
5357
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; Anybody able to give me idea how-to read by C# element which I add to the machine.config into the new single section?
4
2666
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); { MessageBox::Show("The File is Read Only","Warning"); }
4
2593
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 hyphens (ie: 555-123-4567). These fields come as empty using the OleDB namespace and as dbNull when using the ODBC namespace. Is there a way to prevent this from happening? Thanks in advance,
6
1977
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 matter. How can I do it? I was trying using a list, but I don't know how "convert" the elements (files) to a list that I can read and manipulate... Thanks in advance for your help!! Citlaly....
7
2146
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 Dim someother as integer thatdata = ubound( Array1 )
0
2800
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 give the dbf dump file, that dump file will be uploaded by owner's(small(updated database) file will be uploaded by administrator at every month). If the dump file was uploaded, Then We go to export the dump file, as Read and write into the SQL...
0
8863
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9384
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9238
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9157
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6681
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4502
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3207
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 we have to send another system
2
2602
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2147
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.