我有一个C# Windows窗体应用程序正在开发中。当我在开发PC上构建表单时,它看起来很好,但是当我将exe文件移动到另一台机器上时,所有内容都会重新调整大小。这就导致了picturebox和button控件的错位。虽然我在VS中指定了控件的大小,但似乎被忽略了。我还将最小和最大尺寸固定为相同值,但问题仍未解决。
请问是否有人可以指点我错过的东西,因为我需要修复控件的大小。
提前感谢。
新电脑
开发PC
请问是否有人可以指点我错过的东西,因为我需要修复控件的大小。
提前感谢。
新电脑
![enter image description here](https://istack.dev59.com/INW3F.webp)
![enter image description here](https://istack.dev59.com/q71Yr.webp)
this.interviewPb.Image = ((System.Drawing.Image(resources.GetObject("interviewPb.Image")));
this.interviewPb.Location = new System.Drawing.Point(771, 366);
this.interviewPb.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.interviewPb.Name = "interviewPb";
this.interviewPb.Size = new System.Drawing.Size(393, 492);
this.interviewPb.TabIndex = 9;
this.interviewPb.TabStop = false;