dotnet / dotnet/winforms

The up button is truncated when set the DateTimePicker’s ShowUpDown property to True

Open
#3,623 3 comments 0 reactions 0 assignees View on GitHub
:beetle: bug
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
20h 23m
Merged PRs (30d)
103

Description

* .NET Core Version:
5.0.100-rc.1.20367.2

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

**Problem description:**
After set the ShowUpDown property of dateTimePicker to True, then observe the up/down buttons, you'll find the up button is truncated.
![UpDownButton](https://user-images.githubusercontent.com/18568603/88124206-28cf6180-cbff-11ea-8a7d-3fc0001f35d8.png)

**Expected behavior:**
It shouldn’t be truncated.

**Minimal repro:**
1. Create a winforms core project.
2. Drag and drop a dateTimePicker control.
3. Set its ShowUpDown property to True.
4. Build and run the project.
5. Observer the Up/Down buttons.

Or run the attached project: [ShowUpDown.zip](https://github.com/dotnet/winforms/files/4969905/ShowUpDown.zip)

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.