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

Trigger a Help event.

I've managed to get a nice little chm help system written. Now I need
to display it!
I added a HelpProvider to my MDIParent form and set the namespace of
the HelpProvider to be the help file. So far so good - when I press F1,
I get HTML Help popping up with my Help file.
This is good but I've been requested to make Help pop up when the user
clicks on "Help" in the menu, or on a specific Help Button. I'm trying
to trigger the HelpRequested event for the parent form, but I'm not
sure how to do this.
Another question: How does the help file get distributed when I publish
the application and install it on site? I'm guessing I'll have to add
it as a project Resource, but I'm not sure if that will work... will
it? Right now it just seems to work nicely, but I haven't tried
installing on another machine yet.
Finally (this one's probably the most minor): when the help file loads,
it always says "Could not find file" (or something like that), and the
root-level category is selected. The user has to actually click the
root-level category to see its text. I'm pretty sure this is just a
configuration problem, but I can't seem to find anything to solve it.

TIA.

Dec 7 '06 #1
3 1999
Assuming the following is in your help drop down menu
Contents
Index
Search

use the following for contents

Private Sub ContentsToolStripMenuItem_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
ContentsToolStripMenuItem.Click
' Contents dropdown menu
Help.ShowHelp(Me, HelpProvider1.HelpNamespace)

End Sub

--- for index
Private Sub IndexToolStripMenuItem_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
IndexToolStripMenuItem.Click
Help.ShowHelpIndex(Me, HelpProvider1.HelpNamespace)
End Sub
-- for search
Private Sub SearchToolStripMenuItem_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
SearchToolStripMenuItem.Click
Help.ShowHelp(Me, HelpProvider1.HelpNamespace,
HelpNavigator.Find, "")
End Sub
--Distribution of help file
Help file can be used as a resource
OR
place the help file where in same directory as your executable
OR
use Oneclick distribution option
OR
Create an MSI file and include in MSI file
--

Use the following command to to define path of help file

HelpProvider1.HelpNamespace =
System.AppDomain.CurrentDomain.BaseDirectory & "HELPFILE.chm"

Place the help file in the BIN/DEBUG or BIN/RELEASE folder
Hope this helps!

Alam
co*****@ntlworld.com
lo*********@gmail.com wrote:
I've managed to get a nice little chm help system written. Now I need
to display it!
I added a HelpProvider to my MDIParent form and set the namespace of
the HelpProvider to be the help file. So far so good - when I press F1,
I get HTML Help popping up with my Help file.
This is good but I've been requested to make Help pop up when the user
clicks on "Help" in the menu, or on a specific Help Button. I'm trying
to trigger the HelpRequested event for the parent form, but I'm not
sure how to do this.
Another question: How does the help file get distributed when I publish
the application and install it on site? I'm guessing I'll have to add
it as a project Resource, but I'm not sure if that will work... will
it? Right now it just seems to work nicely, but I haven't tried
installing on another machine yet.
Finally (this one's probably the most minor): when the help file loads,
it always says "Could not find file" (or something like that), and the
root-level category is selected. The user has to actually click the
root-level category to see its text. I'm pretty sure this is just a
configuration problem, but I can't seem to find anything to solve it.

TIA.
Dec 8 '06 #2
Assuming the following is in your help drop down menu
Contents
Index
Search

use the following for contents

Private Sub ContentsToolStripMenuItem_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
ContentsToolStripMenuItem.Click
' Contents dropdown menu
Help.ShowHelp(Me, HelpProvider1.HelpNamespace)

End Sub

--- for index
Private Sub IndexToolStripMenuItem_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
IndexToolStripMenuItem.Click
Help.ShowHelpIndex(Me, HelpProvider1.HelpNamespace)
End Sub
-- for search
Private Sub SearchToolStripMenuItem_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
SearchToolStripMenuItem.Click
Help.ShowHelp(Me, HelpProvider1.HelpNamespace,
HelpNavigator.Find, "")
End Sub
--Distribution of help file
Help file can be used as a resource
OR
place the help file where in same directory as your executable
OR
use Oneclick distribution option
OR
Create an MSI file and include in MSI file
--

Use the following command to to define path of help file

HelpProvider1.HelpNamespace =
System.AppDomain.CurrentDomain.BaseDirectory & "HELPFILE.chm"

Place the help file in the BIN/DEBUG or BIN/RELEASE folder
Hope this helps!

Alam
co*****@ntlworld.com
lo*********@gmail.com wrote:
I've managed to get a nice little chm help system written. Now I need
to display it!
I added a HelpProvider to my MDIParent form and set the namespace of
the HelpProvider to be the help file. So far so good - when I press F1,
I get HTML Help popping up with my Help file.
This is good but I've been requested to make Help pop up when the user
clicks on "Help" in the menu, or on a specific Help Button. I'm trying
to trigger the HelpRequested event for the parent form, but I'm not
sure how to do this.
Another question: How does the help file get distributed when I publish
the application and install it on site? I'm guessing I'll have to add
it as a project Resource, but I'm not sure if that will work... will
it? Right now it just seems to work nicely, but I haven't tried
installing on another machine yet.
Finally (this one's probably the most minor): when the help file loads,
it always says "Could not find file" (or something like that), and the
root-level category is selected. The user has to actually click the
root-level category to see its text. I'm pretty sure this is just a
configuration problem, but I can't seem to find anything to solve it.

TIA.
Dec 8 '06 #3
I didn't know about the Help class. Thanks for the tip!

Dec 8 '06 #4

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

Similar topics

3
by: Luklrc | last post by:
Hi. I have a problem I hope someone can help me with. I have a database of events. Each event has a date and a duration (days). What I need to do is to be able to display search for events...
4
by: Peter Lin | last post by:
Dear all; I need to monitor a xml file so that I can update my data in hashtable, but the problem is it will trigger more than one event for a lastwrite action(I trigger this action by add...
2
by: Owin | last post by:
Hi all, I've created an User control. It's an extension of a textbox wich has some extra properties so that validation becomes a lot faster. The control wordks great if autopostback is on. When...
3
by: rmorvay | last post by:
I allow users to click a datagrid row and it spawns another browser page to allow edits to the data in that row. Once they update the data, it is committed to the database and the form is closed. ...
4
by: LyzH | last post by:
Someone else had a question on how to emulate a mouse click. I tried posting in that thread but I have something of a twist on this problem and I'm really in trouble here! If I don't get help...
6
by: wugon.net | last post by:
Hi , Anyone know how to monitor db2 trigger activity ? We suffer some trigger issue , and we try to monitor trigger's behavior use event monitor and db2audit, but both tools can not get...
0
by: wugon.net | last post by:
Hi , Anyone know how to monitor db2 trigger activity ? We suffer some trigger issue today and we try to monitor trigger's behavior use event monitor and db2audit, but both tools can not get...
1
by: koraykazgan | last post by:
Hi all, I have a user control (ASCX). In that user control there is a panel, and inside that panel there is a textbox and a button. The panel has a DefaultButton property set, which is set to the...
11
by: tracy | last post by:
Hi, I really need help. I run this script and error message appeal as below: drop trigger log_errors_trig; drop trigger log_errors_trig ERROR at line 1: ORA04080: trigger 'LOG_ERRORS-TRIG'...
2
by: lenygold via DBMonster.com | last post by:
Hi Everebody: I have a table: CREATE TABLE CROSS_REFERENCE (ROW# INTEGER NOT NULL ,KEY_WORD CHAR(16) NOT NULL ,QUERY_DESCR VARCHAR(330) NOT NULL ,PRIMARY KEY (ROW#,KEY_WORD)); It is a...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.