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

Setting HelpNamespace property for HelpProvider

How do we set the HelpNamespace property of the HelpProvider class, so that
when the application is deployed the path will be correct, since the path
cannot be known for sure ahead of time? This is assuming the user installs
to a different folder than is the default.

Thanks,

Dennis
Nov 15 '05 #1
2 5345
You can write the installation path to the registry key upon installation
and then set the HelpNamespace value programmatically by reading the
registry key value.

You might also want to check whether relative paths are supported by the
HelpProvider - if this is the case, specify relative path only, like
"Help\1033\MyProgram.chm".

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://www.x-unity.net/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Dennis C. Drumm" <de*******@primacode.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
How do we set the HelpNamespace property of the HelpProvider class, so that when the application is deployed the path will be correct, since the path
cannot be known for sure ahead of time? This is assuming the user installs
to a different folder than is the default.

Thanks,

Dennis


Nov 15 '05 #2
Thanks Dmitriy:

Recording the install path to the registry is the solution.

Dennis

"Dmitriy Lapshin [C# / .NET MVP]" <x-****@no-spam-please.hotpop.com> wrote
in message news:u3**************@tk2msftngp13.phx.gbl...
You can write the installation path to the registry key upon installation
and then set the HelpNamespace value programmatically by reading the
registry key value.

You might also want to check whether relative paths are supported by the
HelpProvider - if this is the case, specify relative path only, like
"Help\1033\MyProgram.chm".

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://www.x-unity.net/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Dennis C. Drumm" <de*******@primacode.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
How do we set the HelpNamespace property of the HelpProvider class, so

that
when the application is deployed the path will be correct, since the path cannot be known for sure ahead of time? This is assuming the user installs to a different folder than is the default.

Thanks,

Dennis

Nov 15 '05 #3

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

Similar topics

0
by: Thomas | last post by:
I' currently writing documentation for one of our projects and I need to access the Context ID of a .chm file. My problem is that the .Net HelpProvider/HelpNavigator does not support access to the...
0
by: trialproduct2004 | last post by:
Hi all I am having application with is using class helpprovider. This class is used for opening help file. I have chm file which i am displaying using helpprovider class. My problem is when i...
0
by: Greg Bacon | last post by:
We have a messaging application that makes seemingly unremarkable use of a HelpProvider component. However, after we've received a message, if we display the help popup (either via F1 or through...
0
by: Chuck Bowling | last post by:
using javascript it's possible to launch a browser window that doesn't have toolbars or a menu. Is this possible with the HelpProvider class?
0
by: Paul Remblance | last post by:
Example: Private Sub F1Requested(ByVal sender As Object, ByVal hlpevent As System.Windows.Forms.HelpEventArgs) Handles txtProdCode.HelpRequested If sender.GetType Is GetType(TextBox) Then Dim...
0
by: PromisedOyster | last post by:
I am experiencing some difficulties using the HelpProvider class. If I have the following code in the constructor of my form then the help string "Help Text" gets shown when I click the question...
2
by: lgbjr | last post by:
hi All, I'm building the help system for a VB.Net 2005 winform application (some tooltips and a HelpProvider, etc.). For the HelpProvider, there are controls that I would like to have "What's...
2
by: aasif | last post by:
Hello, need some help with "HelpProvider" in vb2005. I have made a .chm file, and have a topic in there with TopicID called "Login". I have tried for sometime to get (on f1) to launch the .chm file...
1
by: explode | last post by:
I made a 'pomoc za program.htm' hlep page with pictures, the pictures are in 'pomoc za program_files' folder. I set the helpnamespace to that htm file, it works fine but when I install the program...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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
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
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...
0
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...

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.