dotnet / dotnet/winforms

The up and down arrows are not disabled when selecting the first or the last member in Images Collection Editor

Open
#3,152 1 comment 0 reactions 0 assignees View on GitHub
:beetle: bug :construction: work in progress help wanted
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
20h 23m
Merged PRs (30d)
103

Description

* .NET Core Version:
5.0.100-preview.5.20227.13

* Have you experienced this same bug with .NET Framework?:
Yes

**Problem description:**
The up and down arrows are not disabled when selecting the first or the last member.
![Core](https://user-images.githubusercontent.com/62929087/80453247-76b72f00-895a-11ea-8db8-f2a9fa4a5428.png)

**Expected behavior:**
The up arrow should be disabled when selecting the first member.
The down arrow should be disabled when selecting the last member.
![Designer](https://user-images.githubusercontent.com/62929087/80453850-a3b81180-895b-11ea-94a6-e5382943007d.png)

**More info:**
1. This issue also can reproduce with .Net Core 3.1.
2. This issue also can reproduce for MonthCalndar/ListView/TabControl/treeView controls.

**Minimal repro:**
1. Create a winforms core project.
2. Add a propertyGrid and a ImageList controls to form designer.
3. Add this code in the construction method of form: propertyGrid1.SelectedObject = imageList1;
4. Run the core project.
5. Find the **Images** property of ImageList, click the Browser button to show the Images Collection Editor.
6. Click the Add button to add 4 images in it, then select the last member.
7. Observe the down arrows on the right of the images.

Or
1. Run the attached project.
[TestApp.zip](https://github.com/dotnet/winforms/files/4543689/TestApp.zip)
2. Do the above step 5-7.

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.