dotnet / winforms

Windows Forms is a .NET UI framework for building Windows desktop applications.
MIT License
4.35k stars 962 forks source link

Another emoji bug with Rich Text Control (bullet points disappear when emojis are added) #10666

Open vsfeedback opened 7 months ago

vsfeedback commented 7 months ago

This issue has been moved from a ticket on Developer Community.


[severity:Other] Some of the users of my software have reported the following problem with emojis and the Microsoft Rich Text Control - and I can reproduce the problem:

The problem is that inserting emojis into rich text controls that contain bullet points, frequently causes the bullets to disappear. It doesn't always happen with all emojis. It may be that some emojis are worse than others. Also, it appears to happen more easily with Windows 11 than with Windows 10. Here is one (of many) ways to reproduce:

Using Windows 11, type the following text on 4 lines, into a dialog containing a Microsoft Rich Text Control (you will also need to have a way of getting the control to add bullets):

OK One Two Three

Position the cursor right at the start, before the word 'OK'. Press the Windows (flag) key + '.' (the full stop) on your keyboard. The emoji popup window opens. Click or double-click a few times on the 'Heart' emoji, to insert heart emojis. These go in OK (black-and-white version). Now select lines 2 to 4 and use your method, whatever it is, of forcing these lines to be bullet-points. When you do this, the lines become indented, but the bullets do not display.

Actually, this works even if the bullets were already there. They would just disappear. Deleting the emoji does not immediately fix the problem.

The above method doesn't work for me in Windows 10 (i.e. in Windows 10, the bullet points display OK if I do the above). This only works consistently in Windows 11. I can get the problem to occur in Windows 10, but less consistently.


Original Comments

Nick Walker on 1/10/2024, 02:40 AM:

(private comment, text removed)

Alison Jin [MSFT] on 1/10/2024, 10:01 AM:

(private comment, text removed)

Nick Walker on 1/13/2024, 05:37 AM:

(private comment, text removed)

Feedback Bot on 1/15/2024, 09:38 AM:

(private comment, text removed)


Original Solutions

(no solutions)

MandiMan commented 7 months ago

.NET version .NET SDK 9.0.100-alpha.1.24062.11

Did it work in .NET Framework? No

Did it work in any of the earlier releases of .NET Core or .NET 5+? No, it also repro on .NET 3.1 & 5.0 & 6.0 & 7.0 & 8.0

Issue description Insert ‘Heart’ emojis into RichTextBox controls that contain bullet points, frequently causes the bullets to disappear

https://github.com/dotnet/core/assets/108860782/e01b810a-ee9d-49e2-b891-eb746b111c74

Repro Steps:

  1. Unzip the folder RichText.zip
  2. Then build and run attached project
  3. Press the Windows (flag) key + ‘.’ (the full stop) on the keyboard. The emoji popup window opens
  4. Click or double-click a few times on the ‘Heart’ emoji,to insert it into the RichTextBox

Actual result: Insert ‘Heart’ emoji into RichTextBox control, frequently causes the bullets to disappear image

Expected result: Bullets don't disappear after inserting the ‘Heart’ emoji into RichTextBox control image