dotnet/winforms
在 GitHub 查看Setting AutoEllipsis property as true, tooltip still appears after running project when no ellipsis is shown
Open
#5,527 建立於 2021年8月25日
help wanted
倉庫指標
- Star
- (4,100 star)
- PR 合併指標
- (平均合併 14天 22小時) (30 天內合併 56 個 PR)
描述
-
.NET Core Version: .Net 6.0.100-rc.1.21417.19
-
Have you experienced this same bug with .NET Framework?: Yes
More info:
- This issue can also repro on .Net Framework project.
- This issue can also repro on .Net 3.1 and .Net 5.0.
Minimal repro:
- Extract the “WinFormsApp3.zip” and open it in VS. WinFormsApp3.zip
- Build and run this application.
- Move the mouse hover over button1 and button2, then observe the form.
Actual behavior:
It is incorrect behavior, when setting AutoEllipsis(Enables the automatic handing of text that extends beyond the width of the button) as true, but the texts don't beyond the width of button1 and button2. Tooltip still appears when moving the mouse hover over button1 and button2.

Below is the correct behavior, when setting AutoEllipsis as true, tooltip appears when moving the mouse hover over button3.

Expected behavior: Tooltip doesn’t appear when moving the mouse hover over button.