473,767 Members | 7,948 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Diagnost ics.Process.Sta rt(<help_file_p ath>) 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 3683
On Thu, 17 Apr 2008 05:47:56 -0700, <aa*******@gmai l.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*******@gmai l.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*******@gmai l.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
2746
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, but more crucially, some existing functionality does not seem to work on the current MS OSs. The application works with a bespoke electrical gadget which emits a
13
1527
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
2703
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 or Sun). What I'm curious about is why this compatibility exists in the absence of a standard C ABI? What encourages C compiler vendors to agree on implementation issues such as alignment, packing, etc., such that their object
0
1470
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 am currently testing this and it fails. I have a native, unmanaged test application that links against my mc++ dll with a function entry point. Linking works fine, no errors. When I try to run in the debugger I see the output below (abreviated...
4
3919
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. I used VS.NET 2003 to create a C# client that successfully processes SOAP messages to and from the Java service. However, I'm having problems with the C++ client. I created a new solution and a new project with File > New > Visual C++ Projects...
3
1969
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 new format (compiling with /clr:OldSyntax): everything works and compiles fine. Unfortunately, I cannot link to the newly created DLL from any other application/DLL: LNK2019: unresolved external symbol. I've checked the DLL
4
4450
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 to fix that. Investigations are still under progress and I hope you'll be able to give hints or feedback that will drive me to the solution. The applications I'm working on until the next release that will soon
1
3278
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 information when a web link is dropped onto my application from Internet Explorer. When you drag the link in the Address bar of Internet Explorer to your desktop, the desktop shortcut that gets created has the Title of the web page as it’s name,...
1
1529
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 EventHandler I get a compilation error: "Method 'DataGridLink.Form1.cs_LinkClicked does not match delegate" can anyone please help? Thanks for all the help. here is my code: using System; using System.Drawing; using System.Collections;
3
3352
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 first qt program is simple: the first demo which comes with the qt 2.3 installation. The only one code file is: main.cpp, and it is: #include <qapplication.h> #include <qpushbutton.h>
0
9575
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
10170
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...
1
9960
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,...
0
9841
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8840
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7384
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
6656
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5425
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3931
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

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.