Visual Studio is tweaking sizes of menu items

时间:2016-10-20 20:12:57

标签: c# winforms visual-studio

I'm writing a simple WinForms program in C# with Visual Studio 2015, and running into a weird little - not problem, exactly, but unexplained phenomenon. I've added a menu bar and toolbar with standard items, and am filling in actions for some of them. As I do so, I notice Visual Studio keeps tweaking the sizes of various items e.g.

this.aboutToolStripMenuItem.Size = new System.Drawing.Size(152, 22);

the 152 used to be 122, and I didn't change the size or layout of anything, didn't make any design changes at all. I'm not noticing any visible difference, and maybe it's something I don't need to worry about, but I figure I better check just in case it is.

Anyone know what exactly is going on here and why?

0 个答案:

没有答案