473,404 Members | 2,114 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,404 software developers and data experts.

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.SetShowHelp(cEdit,true);
helpProvider.SetHelpString(cEdit,"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.HelpRequested += new
HelpEventHandler(this.cEdit_OnHelpRequested);

protected void cEdit_OnHelpRequested(object sender,
System.Windows.Forms.HelpEventArgs hlpEvent)
{
helpProvider.SetShowHelp(cEdit,true);
helpProvider.SetHelpString(cEdit,"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 1852

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

Similar topics

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: 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...
4
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...
2
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...
2
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...
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...
8
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...
1
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...
0
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. ...
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: 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?
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
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...
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...

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.