How do you actually set the image from say a Resource image in to the tooltip object?
myToolTipInfo.ToolTipImage = ToolTipImage.Custom
myToolTipInfo.ToolTipText = "Some Text"
myToolTipInfo.ToolTipTitle = "A Title"
Me.uToolTipManager.SetUltraToolTip(Me.MyObject, myToolTipInfo)
Looks like you are using "Me.uToolTipManager.Appearance.Image = myImage" in one of the samples, but I cant get that to work. Also tried to use ToolTipInfo.Appearance. It seems you need to use "CustomToolTipImage" on the "Infragistics.Win.ToolTip", but how to incorporate to the "ToolTipManager" and the "UltraWinToolTip.UltraToolTipInfo" objects?
Thanks
Apparantly I need to change the tooltip image on a hover event, cant set all images in an initialize event.
Me.uToolTipManager.ToolTipTitleAppearance.Image = myResource
This seems to work now when I find the control we are hovering over I can change the tooltip image to my particular resource image I want. This works, but if can do it from one event - initializing I would like that better, so please post a reply if this is the only way to set the image or not.
Referring to your first post, I think all you are missing is the code to set the actual image:
myToolTipInfo.Appearance.Image = myImage
Regarding what event to use to change it, you didn't state whether you were using this with an Infragistics control, but if you are, many of our controls expose a MouseEnterElement event which fires each time the user moves the mouse inside a different UIElement. This event is ideal for changing tooltip information.
Hi Brain,
imilar way ...
i need to set up my tool tip for UltraPicturebox anddisplay image in ultrapicturebox but big in size.
Infragistics.Win.UltraWinToolTip.UltraToolTipInfo tf = new Infragistics.Win.UltraWinToolTip.UltraToolTipInfo();
tf.ToolTipImage = Infragistics.Win.
ToolTipImage.Custom;
tf.Appearance.Image = (
Image)UltraPictureBox.Image;
Infragistics.Win.UltraWinToolTip.
UltraToolTipManager t = new Infragistics.Win.UltraWinToolTip.UltraToolTipManager();
t.SetUltraToolTip(UltraPictureBox, tf);
t.ShowToolTip(UltraPictureBox);
But it is not working.Please Help me for this issue.
Thanks,
vishnu