473,657 Members | 3,021 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2024
Assuming the following is in your help drop down menu
Contents
Index
Search

use the following for contents

Private Sub ContentsToolStr ipMenuItem_Clic k(ByVal sender As
System.Object, ByVal e As System.EventArg s) Handles
ContentsToolStr ipMenuItem.Clic k
' Contents dropdown menu
Help.ShowHelp(M e, HelpProvider1.H elpNamespace)

End Sub

--- for index
Private Sub IndexToolStripM enuItem_Click(B yVal sender As
System.Object, ByVal e As System.EventArg s) Handles
IndexToolStripM enuItem.Click
Help.ShowHelpIn dex(Me, HelpProvider1.H elpNamespace)
End Sub
-- for search
Private Sub SearchToolStrip MenuItem_Click( ByVal sender As
System.Object, ByVal e As System.EventArg s) Handles
SearchToolStrip MenuItem.Click
Help.ShowHelp(M e, HelpProvider1.H elpNamespace,
HelpNavigator.F ind, "")
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.H elpNamespace =
System.AppDomai n.CurrentDomain .BaseDirectory & "HELPFILE.c hm"

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

Alam
co*****@ntlworl d.com
lo*********@gma il.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 ContentsToolStr ipMenuItem_Clic k(ByVal sender As
System.Object, ByVal e As System.EventArg s) Handles
ContentsToolStr ipMenuItem.Clic k
' Contents dropdown menu
Help.ShowHelp(M e, HelpProvider1.H elpNamespace)

End Sub

--- for index
Private Sub IndexToolStripM enuItem_Click(B yVal sender As
System.Object, ByVal e As System.EventArg s) Handles
IndexToolStripM enuItem.Click
Help.ShowHelpIn dex(Me, HelpProvider1.H elpNamespace)
End Sub
-- for search
Private Sub SearchToolStrip MenuItem_Click( ByVal sender As
System.Object, ByVal e As System.EventArg s) Handles
SearchToolStrip MenuItem.Click
Help.ShowHelp(M e, HelpProvider1.H elpNamespace,
HelpNavigator.F ind, "")
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.H elpNamespace =
System.AppDomai n.CurrentDomain .BaseDirectory & "HELPFILE.c hm"

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

Alam
co*****@ntlworl d.com
lo*********@gma il.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
3725
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 on some web pages. My problem is that if an event is on say 15 nov 2004 and has a duration of 3 days, at the moment if someone searches for the
4
4012
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 something in the xml file using notepad). Here is my codes about using FilesystemWatcher fileWatcher=new FileSystemWatcher(); fileWatcher.Path=System.Environment.CurrentDirectory; fileWatcher.NotifyFilter=NotifyFilters.LastWrite;
2
3969
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 there's a value in the textbox, the (overridden) textchanged event fires and validation is performed. Now I want to turn off autopostback. So I want my contol only validate if the submit button is pressed. I've tried Page.Validate(), but It seems...
3
1614
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. Once the edit page is closed, I need to trigger the search button click event in order to refresh the datagrid with the original search criteria. I cannot figure out how to trigger the Button1_ServerClick event of the main page from the called...
4
1837
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 soon, I'm going to fail this class and the class is already dragging down my GPA. I'm taking an introductory visual basic class with an advanced visual basic book and assignments (the department dropped the prerequisite and the class needs one....
6
6818
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 trigger's sql statment and cost, have other tools can get trigger's executing sql statment and cost ? our test case as follow: Env:
0
2625
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 trigger's sql statment and cost, have other tools can get trigger's executing sql statment and cost ? our test case as follow: Env:
1
3893
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 button inside it. I also have a page, and on that page there are two instances of that user control (uc1 and uc2). I additionaly have an update panel on the page. In that update panel there is a label. This update panel has two async triggers...
11
7865
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' does not exist drop table log_errors_tab;
2
3747
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 cross reference table to my CATALOG Table based on key words.
0
8384
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
8302
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8820
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...
0
8718
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8499
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
8601
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
7314
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
6162
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...
2
1601
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.