So implementieren Sie In-Place-Tooltip

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: So implementieren Sie In-Place-Tooltip

by Anonymous » 22 May 2025, 16:29

Wie kann ich ein In-Place-Tooltip für meinen längeren Kontrolltext einstellen, genau wie:
< /p>

-Brows.

Code: Select all

ToolTip ttpInplace = new ToolTip();
ttpInplace.Show(textbox1.Text, textbox1, 0, 0, 4000);

private void FormToolPopup_MouseEnter(object sender, EventArgs e)
{
if (ttpCustomToolTip != null)
{
ttpCustomToolTip.Hide(textBox1);
}
}

private void textBox1_MouseEnter(object sender, EventArgs e)
{
Size s = TextRenderer.MeasureText(textBox1.Text, textBox1.Font);
if (s.Width > textBox1.Width)
{
ttpCustomToolTip.Show(textBox1.Text, textBox1, -4, 0);//, 5000);
}
}
Aber es flackert. Ich?

Top