dotnet / dotnet/winforms

ToolTipTitle not fully visible when associated control uses Right-To-Left layout

Open
#12,604 1 comment 0 reactions 1 assignee Claimed by @KlausLoeffelmann View on GitHub
priority-3
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
1d 13m
Merged PRs (30d)
85

Description

### .NET version

.NET 10 with NET 10.0.100 - alpha.1.24573.1 build

### Did it work in .NET Framework?

No

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

No, repro in .NET 3.1

### Issue description

### Current Behavior

If the ToolTipTitle contains fewer than 5 characters, no title will be displayed. For titles with 5 or more characters, some characters will remain hidden.

![Image](https://github.com/user-attachments/assets/641f195b-04ca-46fa-8d6a-0aa7fa66995d)

### Expected Behavior

The ToolTip should display correctly, showing both its title and content.

![Image](https://github.com/user-attachments/assets/a865f078-7293-401c-816f-88d22c0b7668)

### Steps to reproduce

1. Create a new WinForms .NET application.
2. Add a `ToolTip` and a control that supports both `RightToLeft` and `RightToLeftLayout `properties, such as `TabControl`, `TrackBar`, or `DateTimePicker`.
3. Set the `IsBalloon `property for `ToolTip `to true and assign a title to the `ToolTipTitle `property, such as "Hello".
4. Set the control's `RightToLeft `property to Yes and its `RightToLeftLayout `property to `True`.
5. Assign the `ToolTip on toolTip1` with any text.
6. Run the application and hover over the control to display the ToolTip.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.