dotnet/winforms
在 GitHub 查看ContextMenuStrip not opening when moving window on secondary display
Open
#4,084 建立於 2020年10月11日
:beetle: bugarea-HDPIarea-controls-StripControlshelp wanted
倉庫指標
- Star
- (4,100 star)
- PR 合併指標
- (平均合併 14天 22小時) (30 天內合併 56 個 PR)
描述
- .NET Core Version: 3.1
- Have you experienced this same bug with .NET Framework?: Haven't tried. I need to use .NET Core
Problem description: Given
- a
WPFapp - that uses the
WinFormsContextMenuStrip - in a
dual monitorsetup - when moving the MainWindow to the
secondary monitor - the context menu does not display at all
Expected behavior: The context menu is displayed
Minimal repro: Repo: https://github.com/ccornici/tray_context_menu_bug
Demo (contained in the repo too)

Other details:
- All other tray icons from other apps (ex: Spotify, NVidia Control Panel etc) work as expected. So it doesn't look like a WIn 10 bug that affects any and all tray icons.
- The
Openingevent of theContextMenuStripgets fired. It simply doesn't display the context menu...