473,385 Members | 1,487 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,385 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 2006
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
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: 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.