0
Visual Studio GUI 디자이너에 문제가 있습니다. 디자이너는 .designer.cs 파일과 다른 값을 표시합니다. 예를 들어, 항목 simpleButtonPrint, 나는 다음과 같은 속성을 가지고있는 디자이너 : 내 designer.cs 파일에서비주얼 스튜디오 디자이너 속성 창 대 디자이너 파일
//
// simpleButtonPrint
//
this.simpleButtonPrint.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.simpleButtonPrint.Appearance.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
this.simpleButtonPrint.Appearance.Options.UseBackColor = true;
this.simpleButtonPrint.ButtonStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat;
this.simpleButtonPrint.Image = ((System.Drawing.Image)(resources.GetObject("simpleButtonPrint.Image")));
this.simpleButtonPrint.ImageLocation = DevExpress.XtraEditors.ImageLocation.MiddleCenter;
this.simpleButtonPrint.Location = new System.Drawing.Point(1146, 640);
this.simpleButtonPrint.Margin = new System.Windows.Forms.Padding(15);
this.simpleButtonPrint.Name = "simpleButtonPrint";
this.simpleButtonPrint.Size = new System.Drawing.Size(98, 98);
this.simpleButtonPrint.TabIndex = 9;
this.simpleButtonPrint.Text = "simpleButton4";
this.simpleButtonPrint.Click += SimpleButtonPrint_Click;
, 크기는 크기가 121 131 비주얼 스튜디오에서 내 속성 창에서 98, 98이다. 다른 컴퓨터에
같은 버튼 : 아래의 스크린 샷을 참조하십시오 나는 GUI 디자이너의 변경을 할 때 문제가
, 그것은 수정 내 GUI 디자이너에서의 designer.cs 파일 내 동료가 TFS에서 동일한 버전을 얻었을 때 같은 문제가 발생하지 않기 때문에 시각 스튜디오의 문제입니다. 이 문제를 해결하는 방법에 대한 제안 사항이 있으십니까?
designer.cs 파일은 디자이너보기에서 컨트롤의 속성을 변경하면 변경됩니다. designer.cs 파일의 코드가 실행되고 컨트롤이 초기화되고 폼에 차례로 기록됩니다. 동료와 확인하려면 디자이너보기에서 일부 내용을 변경하고 designer.cs와 함께 양식을 저장하도록 요청할 수 있습니까? 파일을 체크 아웃하거나 파일을 자동으로 체크 아웃하고 designer.cs 파일을 변경하도록 요청해야합니다. –
동일한 사용자 컨트롤 속성 창에서 캡쳐 한 스크린 샷과 다른 컴퓨터에서 내 게시물을 편집했습니다. 다른 컴퓨터에서는 올바른 크기 (98,98)를 보여줍니다. 내 컴퓨터에서 수정하기 전에는 모든 것이 잘 작동합니다. – user1408786
두 컴퓨터의 그래픽 DPI 설정이 다릅니다. 그러나 위치, 여백 등등 다른 속성도 다릅니다. – LarsTech