dotnet / winforms

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

NET 6, Windows.Forms ColorEditor, missing resources #6915

Closed vsfeedback closed 2 years ago

vsfeedback commented 2 years ago

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


Hi, the screenshot should explain everything. A missing resource in Windows.Forms.Design.dll. The problem is easy to reproduce, for example: In a PropertyGrid Control, Color Property, DropDown, right click on a Custom Color Field what should show the Colorpicker. Regards, Christian Ohle

image.png


Original Comments

Feedback Bot on 3/24/2022, 02:38 PM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

Olina Zhang [MSFT] on 3/24/2022, 06:08 PM:

Thanks for your feedback!

Unfortunately we cannot reproduce this issue on our side, in order to investigate this further, could you please provide detail reproduce steps or a minimum sample app how to repro it?
Here is we are trying:

  1. Create a Winforms .Net 6.0 application
  2. Add a PropertyGrid control to form designer, bind SelectedObject property to Form1
  3. Build and run application
  4. Find backColor property in PropertyGrid, click dropdown, focus on Custom color tab, pick up any color

Result: All work well, please see following gif:
CustomColor.gif

Christian Ohle on 3/24/2022, 11:01 PM:

Hi, it happens on right click on one of the the custom colors fields in the “user defined colors” tab.
I hope it helps

Christian Ohle on 3/24/2022, 11:15 PM:

VS screen record from the page seems not to work for me. Therefore again as screenshots:

image.png

image.png

image.png

image.png

Olina Zhang [MSFT] on 3/28/2022, 11:33 AM:

Thanks for your update, I can repro your issue now.


Original Solutions

(no solutions)

Olina-Zhang commented 2 years ago

Repro steps:

  1. Create a Winforms .Net 6.0/7.0 applciation
  2. Add a propertyGrid and a button to form designer
  3. Bind this button to propertyGrid's selectedObject property WinFormsApp13.zip
  4. Build and run application
  5. Focus on BackColor property in PropertyGrid, and expand its dropdownlist, goes to Custom tab, and right-click on any white color at the bottom

MoreInfo:

  1. This issue cannot repro in color dialog in .Net 6.0/7.0
  2. This issue cannot repro in .Net framework 4.8

Actual Result: an error dialog pops up: image

Expected result: Define color dialog pops up, following is the behavior in framework app image

RussKie commented 2 years ago

MoreInfo:

  1. This issue cannot repro in color dialog in .Net 6.0/7.0

I suppose you meant "it can repro".

I've looked at the code, and it doesn't look at ever worked since we ported this code to .NET Core. image

Olina-Zhang commented 2 years ago

I suppose you meant "it can repro".

In color dialog, there isn't that error dialog popping up, has the same behavior of .Net framework, see it as below: ColorDialog

Olina-Zhang commented 2 years ago

Verified this issue in the latest .Net 7.0 SDK build: 7.0.100-preview.4.22206.9, it is fixed. image

Cassie-Li01 commented 2 years ago

Verified this issue in the latest .Net 7.0 SDK build: 7.0.100-preview.4.22213.30, it is fixed. image

Philip-Wang01 commented 2 years ago

Verified this issue in .NET SDK 7.0.100-preview.4.22227.3 test pass build, it is fixed. image