dotnet / dotnet/winforms

MenuStrip, ToolStrip and StatusStrip white border issue

Open
#5,421 7 comments 0 reactions 0 assignees View on GitHub
area-controls-StripControls area-Theming help wanted
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
20h 23m
Merged PRs (30d)
103

Description

* .NET Core Version:
.NET SDK (reflecting any global.json):
Version: 5.0.302
Commit: c005824e35

Runtime Environment:
OS Name: Windows
OS Version: 10.0.22000
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\5.0.302\

Host (useful for support):
Version: 5.0.8
Commit: 35964c9215

.NET SDKs installed:
5.0.103 [C:\Program Files\dotnet\sdk]
5.0.302 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 5.0.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 5.0.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.8 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 5.0.3 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 5.0.8 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

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

**Problem description:**
if the "strips" have dark colors (via professional renderer) a white border (on the left for toolstrip and menustrip and statusstrip, and on the bottom for statusstrip) cannot be avoided.

White border near the form border (.Net Core 5):

![image](https://user-images.githubusercontent.com/12256319/129196402-d6ec2391-7acb-4dab-95bc-733eb1593961.png)
![image](https://user-images.githubusercontent.com/12256319/129197328-f1ed3007-fffe-4a8f-92ae-2971dd0ec02d.png)
![image](https://user-images.githubusercontent.com/12256319/129197392-74045694-76df-482d-be2a-2d4d1cbcff72.png)

**Expected behavior:**
Same application, same "ToolStripProfessionalRenderer" in .Net Framework 4.8, the borders are drawn correctly:

![image](https://user-images.githubusercontent.com/12256319/129196777-7bcb9938-2513-49b5-8454-9cec0be0e082.png)

Best Regards,
Angelo

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.