quote:Originally posted by Mattike
You're doing it wrong.
code:var MyToolTip = new Tooltip(...) //Just to make sure you know that MyToolTip is a ToolTip class.
//MyToolTip::Text is a property of the type String, so you don't need the brackets there. Besides, you can't place function calls on the left side anyway!!!
//So here are 2 ways to do it, a "long" method and a "short" one.
MyToolTip.Text = MyToolTip.Text + "\n" + Text; //Method 1
MyToolTip.Text += "\n" + Text; //Method 2 //And finally, you need to call UpdateToolTip to update the tooltip.
MyToolTip.UpdateToolTip(); //That's it!
ok thx that work fine now, but u see my little bug?