Unplanned
Last Updated: 30 Aug 2017 07:34 by Servicesiem
Todor
Created on: 09 Mar 2017 08:53
Category: UI Framework
Type: Bug Report
1
FIX. RadControl - help dialog of HelpProvider is instantly closed, when the user clicks form's help button and then a RadControl.
To reproduce:
1. Add HelpProvider on the form.
2. Add RadButton(or any other RadControl).
3. Use the following code:
this.helpProvider1.SetHelpString(this.radButton1, "RadButton help message.");
this.MaximizeBox = false;
this.MinimizeBox = false;
this.HelpButton = true;
4. Run the form, click form's help button and then click the button. - Help dialog is shown and instantly closed.

Workaround:
Subscribe to the control's HelpRequested event and show a tooltip.
this.helpProvider1.SetShowHelp(this.radButton1, false);
this.radButton1.HelpRequested += Control_HelpRequested;

private void Control_HelpRequested(object sender, HelpEventArgs hlpevent)
{
    Control control = sender as Control;
    if (control == null)
    {
        return;
    }

    hlpevent.Handled = true;
    RadToolTip tip = new RadToolTip();
    tip.Show(this.helpProvider1.GetHelpString(control), 3000);
}
1 comment
Servicesiem
Posted on: 16 Aug 2017 14:15
I have a doubt when I put a helpProvider in a radtextBox it shows, but in a radbutton it does not show it