C # Position control menu on multiple monitors

I have two monitors. I see some strange behavior when I access the MenuStrip of my C # application near the edge of my left monitor.

Case 1: in this screenshot, I opened SubMenu1 when the window is pretty close to the edge of my left monitor. SubMenu2 is displayed on the very left edge of my right monitor.

Gap

Case 2: Then I move my application a few pixels to the left, and now SubMenu2 appears to the left of SubMenu1.

No gap

In my opinion, Case 2 looks a lot nicer. Is there a way to make C # always show the menu, as in case 2?

+3
source share
2 answers

, SubMenu1 RightToLeft RightToLeft.Yes. , , . , DropDownOpening "Menu".

+1

MenuStrip, , MenuItem.

, ( ), .

+2

Source: https://habr.com/ru/post/1776246/


All Articles