Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Per-Monitor Aware: ContextMenuStrip not scales #38

Open
mcka-dev opened this issue Jan 23, 2018 · 1 comment
Open

Per-Monitor Aware: ContextMenuStrip not scales #38

mcka-dev opened this issue Jan 23, 2018 · 1 comment

Comments

@mcka-dev
Copy link

mcka-dev commented Jan 23, 2018

On the form I added System.Windows.Forms.ContextMenuStrip

this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
this.item1ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.item2ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();

// 
// contextMenuStrip1
// 
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.item1ToolStripMenuItem,
this.item2ToolStripMenuItem});
this.contextMenuStrip1.Name = "contextMenuStrip1";
this.contextMenuStrip1.Size = new System.Drawing.Size(108, 48);
// 
// item1ToolStripMenuItem
// 
this.item1ToolStripMenuItem.Name = "item1ToolStripMenuItem";
this.item1ToolStripMenuItem.Size = new System.Drawing.Size(107, 22);
this.item1ToolStripMenuItem.Text = "Item 1";
// 
// item2ToolStripMenuItem
// 
this.item2ToolStripMenuItem.Name = "item2ToolStripMenuItem";
this.item2ToolStripMenuItem.Size = new System.Drawing.Size(107, 22);
this.item2ToolStripMenuItem.Text = "Item 2";

ContextMenuStrip not scales:
default

What need to do to context menu scales?

P.S. In this case System.Windows.Forms.MainMenu scales perfectly
Microsoft Windows [Version 10.0.16299.192]
.Net Framework 4.7

@wizzard0
Copy link

toolStrip does not scale too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants