How can I change the text of an existing ToolTip control, in a PictureBox in my WinForm application?

Don't create a new ToolTip each time. Add a ToolTip to the form using the visual designer, like you would for any other control or component. Call toolTip.

SetToolTip(...) on the form's tool tip each time. The ToolTip will be disposed when the Form is disposed.

Problem with that is that I don't know how many I need. It's based upon some dynamic data. So I need to make them dynamically.

– Pure. Krome Aug 30 at 4:52 3 You only need one. One ToolTip component can provide tips for thousands of controls.

When you call toolTip. SetToolTip(Control, Text), it adds the control and text to an internal collection and handles the control's mouse events. When you hover over a control, the ToolTip component looks up the associated text.To remove an entry from this collection, call toolTip.

SetToolTip(Control, null) – Hand-E-Food Aug 30 at 5:20 W00t - looks like that is the trick :) seems good ... – Pure. Krome Aug 30 at 6:58.

Yes, you do not need to create new toolTip each time. Single toolTip will do. And there is no issue if you do not know how many toolTips you want, because if there is only one tooltip say toolTip1, then you can use following every time when you want to change the tooltip caption and control on some event.

ToolTip1. SetToolTip(Current_pictureBox, ""); let me know when you are done with this.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions