473,383 Members | 1,929 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,383 software developers and data experts.

How to link .CHM to windows application

Hi,

I have a windows applicationm which can open seversal forms from a
main form. All the forms that are opened, from main form (as well the
main form) have a link to the help (.chm) file.

I am using System.Diagnostics.Process.Start(<help_file_path>) to
display the help file. But the problem is, there are as many help
files opened, as many time i clicked on the link.

Is there any way i can ensure that only 1 instance of the Help file is
opened.

Regards,
Ankit!
Jun 27 '08 #1
5 3660
On Thu, 17 Apr 2008 05:47:56 -0700, <aa*******@gmail.comwrote:
[...]
Is there any way i can ensure that only 1 instance of the Help file is
opened.
Have you tried using the Help class, with the Help.ShowHelp() method,
instead of starting a new process each time?

http://msdn2.microsoft.com/en-us/lib....showhelp.aspx

Pete
Jun 27 '08 #2
Thanks Pete...it solved my problem.

However, thrs another problem with this arrangement now. The control/
form which i pass in the ShowHelp method, seems to have become the
ownwer of the help file. i am not able to bring that form/control
infront of the help file. Any ideas how it can be done?

Regards,
Ankit!
Jun 27 '08 #3
On Thu, 17 Apr 2008 22:25:58 -0700, <aa*******@gmail.comwrote:
Thanks Pete...it solved my problem.

However, thrs another problem with this arrangement now. The control/
form which i pass in the ShowHelp method, seems to have become the
ownwer of the help file. i am not able to bring that form/control
infront of the help file. Any ideas how it can be done?
Hmmm...I dunno. How are you using the class? What's your exact OS and
..NET version? Have you tried it on any other?

I don't have that issue, but I admit I haven't done a lot of testing on
different platforms. I can tell you that calling Help.ShowHelp() with my
main form as the parent works fine for me. The help window shows up,
hosted in my process, and it's non-modal (i.e. I can still use my main
form).

That's using .NET 2.0 on XP SP2.

I haven't used the Help class enough to say what might explain the
difference. But maybe there's a way to affect whether the help is
displayed modally or not. I played with some of the settings in HTML Help
Workshop and wasn't able to reproduce the modal behavior. But maybe
there's something in the CHM file that's controlling that.

I'm not an expert on implementing help files, so I can't really say. I
can assure you that in at least some cases, it's possible to show the help
modelessly. :)

Pete
Jun 27 '08 #4
Pete, my help window is not opening modally. I am able to work on the
main form, but when i try to drag the main form over the help
window..it wont do it. it will simply get under the help file window.
Not sure whats the reason.

Regards,
Ankit!
Jun 27 '08 #5
On Fri, 18 Apr 2008 02:36:54 -0700, <aa*******@gmail.comwrote:
Pete, my help window is not opening modally. I am able to work on the
main form, but when i try to drag the main form over the help
window..it wont do it. it will simply get under the help file window.
Not sure whats the reason.
Ahh...well, that's because the help window is a top-most window. AFAIK,
this is how in-process help is always displayed. I'm not aware of any way
to change that.

If there is, Google may be of help there. I'm afraid I don't have any
ideas myself.

Sorry...

Pete
Jun 27 '08 #6

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

Similar topics

4
by: Naran Hirani | last post by:
Hi fellow Netters, I need to re-write a very old C/C++ application written in the days when MS/PC-DOS was king. The reason for the re-write is that the application needs some new functionality,...
13
by: Razzbar | last post by:
Is there any to tell via javascript the "state" of a link? I mean, I'd like to be able to tell if a link has been followed or not. (hehe, I can hear shrill crys of "privacy!" in the distance...)
13
by: Derek | last post by:
As I understand it there is a good amount of link compatibility among C compilers. For example, I can compile main.c with GCC and func.c with Sun One and link the objects using either linker (GNU...
0
by: Eric Twietmeyer | last post by:
Hello, Am I mistaken in thinking that if I have a mc++ dll that I should be able to link against it (so long as it has exported symbols via declspec(dllexport)) in an unmanaged application? I...
4
by: Mike Woinoski | last post by:
(I'm new to VS, so please forgive me if this is a faq.) I'm writing some Java web services and need to test them with C++ clients. I can use either a Windows Form application or an MFC application....
3
by: Andreas | last post by:
Hi! I'm currently developing a DLL that makes use of C++ and .net (mixed) using Visual Studio 2003. Now, as I wanted to move to the new Visual Studio 2005, I converted this project into the...
4
by: yhebib | last post by:
Hello All, I've been browsing and reading all articles I could find on technet ,msdn and other knowledgeable sources to understand the issue I'm dealing with. However, I did not find so far how...
1
by: Staal | last post by:
My C# application supports drag and drop of files, folders, shortcuts and links from other applications into mine. This all works pretty nicely, except that I am trying to get a little more...
1
by: VanZandt | last post by:
I have a class(dll) that extends winform datagrid to provide link column in vb.net. I have managed to create a datagrid in c# winforms that shows link in one of the column but when I try to create a...
3
by: Kevin | last post by:
Hi guys, I am a beginner for QT, and I installed the free qt 2.3 under windows (XP), as well as the MS's free VC expression edition (for their compilers, linkers, etc), and the SDK tool. My...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.