I have a user control that has two text boxes and one button. I'm trying to set the tool tip through code but it does not work on my user control. It works on all other controls on the form. Is there some kind of interface that must be used on the user control? Or do I need to buble up events from the child controls up to the user control?
It's hard to guess why it's not working without more information. Where is the UltraToolTipManager? Is it on the UserControl? If so, then I can't see why it should not work.
If it's on the form and pointing to a control inside the UserControl, I think it should probably still work, but it might be a bug.
What version of the controls are you using? Do you have the latest Hot Fix?
I have the UltraToolTipManager on the form. On the form load event the form loops through all the controls and sets their tooltip with the UltraToolTipManager's SetUltraToolTip method. The reason I loop through all the controls is that the tool tip information is actually stored in a database. This was done to allow me to have our documentation person update the tooltips during runtime.
On this form I have a user control. I can call the SetUltraToolTip method on the user control, but the tooltip does not show up. I have tried setting it up on the child controls of the user control and this does work, but I don't like this solution becuase the child controls of the user control are not uniquely named. I feel that there must be some events or interface that the UltraToolTipManager is using. MS tooltips use the mousehover event.
I'm running 8.2 version of the controls and this is a winform application. I didn't know there was a hot fix for this version.
I think there is a hot fx for the v8.2 release - or if not there will be one very soon. But I doubt it will help. I don't know of any bugs like the one you are describing here.
What you should do is create a small sample project demonstrating the behavior and Submit an incident to Infragistics Developer Support so they can check it out.
After thinking about this a little further, my guess is that the events of the UserControl itsef probably aren't firing because the mouse is over some child control within that UserControl. The ToolTipManager will be hooking events of the UserControl itself - probably MouseMove or MouseHover. But I don't think those events will fire if the mouse is over a child control contained within the user control. The mouse probably has to be over the user control itself for the events to fire.
One thing you could do to get around this is hook the events of the child controls and bubble them up. In other words if your usercontrol contains a textbox, then when you get a MouseMove event on the text box, fire the MouseMove event of the user control.
Another option would be to add a method to the UserControl that sets the tooltip on itself and all of it's child controls to the same thing.