R
Ryan
I have a winform with 20 text boxes; some text boxes have default values and
some are blank. I have the following code to display ToolTip for each of the
TextBox controls:
System.Windows.Forms.ToolTip ToolTip1 = new System.Windows.Forms.ToolTip();
foreach (Control ctrl in this.Controls)
{
if (ctrl is TextBox)
{
ToolTip1.SetToolTip(ctrl, ctrl.Text);
}
}
When I change data or add data to a blank textbox control; the ToolTip will
not display updated information.
How do I resolve this issue?
some are blank. I have the following code to display ToolTip for each of the
TextBox controls:
System.Windows.Forms.ToolTip ToolTip1 = new System.Windows.Forms.ToolTip();
foreach (Control ctrl in this.Controls)
{
if (ctrl is TextBox)
{
ToolTip1.SetToolTip(ctrl, ctrl.Text);
}
}
When I change data or add data to a blank textbox control; the ToolTip will
not display updated information.
How do I resolve this issue?