471,315 Members | 1,461 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,315 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
string "Help Text" gets shown when I click the question mark button on
the dialog
and then click the cEdit control

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

protected void cEdit_OnHelpRequested(object sender,
System.Windows.Forms.HelpEventArgs hlpEvent)
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 1762

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by trialproduct2004 | last post: by
reply views Thread by Haiping Jia | last post: by
4 posts views Thread by Darin | last post: by
2 posts views Thread by Richard | last post: by
2 posts views Thread by RBChallenger | last post: by
2 posts views Thread by lgbjr | last post: by
1 post views Thread by gordon | last post: by
reply views Thread by rosydwin | last post: by

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.