Skip to content

Using API ToolTip.Show(...), ToolTip will display incorrect location #13517

Closed
@MauNguyenVan

Description

@MauNguyenVan

.NET version

net9.0-windows,

Did it work in .NET Framework?

Not tested/verified

Did it work in any of the earlier releases of .NET Core or .NET 5+?

Yes, I have test in .net 8.0, the isssue is the same

Issue description

In control Tooltip, if I use API toolTip1.SetToolTip(control, "string") => this will show OK
But I use toolTip1.Show("string",control, ...) API => the tooltip display incorrect location, it is not the same as using toolTip1.SetToolTip() API

Image

Steps to reproduce

see my repo WinFormsToolTipBug

   #region Bug 1  toolTip1.Show() will display the tooltip is incorrect position, it is not the same as toolTip1.SetToolTip (for both toolTip1.IsBalloon = false/true)
   /// <summary>
   /// 
   /// </summary>
   /// <param name="sender"></param>
   /// <param name="e"></param>
   private void CheckBox1_CheckedChanged(object? sender, EventArgs e)
   {
       toolTip1.IsBalloon = this.checkBox1.Checked;
       
       toolTip1.Show("toolTip1.Show(text, window) => bug position", this.checkBox1);
   }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions