473,574 Members | 2,875 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help with the HelpProvider class

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 mark button on
the dialog
and then click the cEdit control

helpProvider.Se tShowHelp(cEdit ,true);
helpProvider.Se tHelpString(cEd it,"Help Text");
As the helptext is coming from a datasource, I want to get the help
text on demand. Therefore, I change the code to be as follows:

cEdit.HelpReque sted += new
HelpEventHandle r(this.cEdit_On HelpRequested);

protected void cEdit_OnHelpReq uested(object sender,
System.Windows. Forms.HelpEvent Args hlpEvent)
{
helpProvider.Se tShowHelp(cEdit ,true);
helpProvider.Se tHelpString(cEd it,"Help Text"); // ie normally gets
from a datasource
}
However, what happens now is that only on the second and subsequent
button clicks do I see the help string.

Can anyone offer any suggestions/recommendations on how to fix or
workaround the issue?

Jan 31 '06 #1
0 1863

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

Similar topics

0
1331
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 minimize my application and help file both are getting minimized into same window and in task bar only minimized application is getting displayed. I...
0
1074
by: Haiping Jia | last post by:
Hi, I want to the HelpProvider show the the right help page and also highlight the right topic in table of contents. I did the following code for my control. It shows the right html page but it doesn't hightlight the right topic on table of contents. I did this for my control: this.helpProvider.SetShowHelp(this.inputFilesControl, true);...
4
3472
by: Darin | last post by:
I have hundreds of forms and I have a class defined as cMyForm which is what every form is (inherits cMyForm as the start instead of system.windows.forms.form) When I add a helpprovider to a form, it creates: Friend with events helpprovider1 as system.windows.forms.helpprovider and:
2
1693
by: Richard | last post by:
I have attached a help file to a form(help1.Html). Dim hlp As New Windows.Forms.HelpProvider hlp.SetShowHelp(Me, True) hlp.HelpNamespace = "c:/temp/Help1.html" On a button click I want to change the help to a new help file(Help2.Html). Dim hlp As New Windows.Forms.HelpProvider hlp.SetShowHelp(Me, True) hlp.HelpNamespace =...
2
1313
by: RBChallenger | last post by:
Hi, Can anyone tell me how to embed help pages into an application? Im looking for the standard windows help system that you typically see... little purple books as the index pages in the other pane, ability to open the correct page on demand etc. Thanks ahead of time!!! -- RBChallenger...
2
4634
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 This" support by using the ? button in the form header, but..... I don't want to give up the Min and Max buttons. So, If I create my own ? button...
8
1896
by: jen | last post by:
i'm trying to decide what format to use when it comes to building user help and tips. ..chm files, tooltips, custom forms, other...? is there a tool that "easily" lets you build help files (.chm, etc..)? what else is out there? thanks to those who reply...i appreciate the input!
1
9503
by: gordon | last post by:
Hi I have an app that i have written a chm help file for. What is the best way to associate that with my help menu and the F1 key. I have added the file to the project already, just not sure of the best way to call it. I have tried private void helpaHelpToolStripMenuItem_Click(object sender, EventArgs e) {
0
1200
by: leonardo616 | last post by:
I have a VB.Net 2003 desktop Windows application to which I need to add help display. I have added a HelpProvider and assoicated CHM file - which works fine with all controls on the forms. But - as in plain VB - my client wants the 'F1' help action to work on menuitems. As menuitems are components and not controls they don't have the...
0
7835
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...
0
7753
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...
0
8095
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. ...
0
8265
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...
0
6500
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...
1
5645
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...
0
3769
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3787
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1096
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...

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.