Rob
Rob

Reputation: 8101

How can I keep my context menu from spilling onto another monitor in C#?

I've been learning C# lately, and I'm working on a context menu for a notifyicon. The context menu comes up just fine, but if the menu is too large to fit, it'll spill over onto my monitor to the right.

How can I fix this?

Upvotes: 2

Views: 450

Answers (1)

JMK
JMK

Reputation: 28069

I have found that I can re-create this problem as shown below:

Problem

The solution seems to be to change the RightToLeft property of the context menu to Yes (right click on the menu, click properties and then select RightToLeft from the properties pane), so my context menu now looks like so:

Solution

Hope this helps!

Upvotes: 1

Related Questions