Eu tenho um problema com o meu visual studio GUIdesigner. O designer mostra valores diferentes do meu arquivo .designer.cs. Por exemplo, item simpleButtonPrint, no designer eu tenho as seguintes propriedades:
//
// 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;
No meu arquivo designer.cs, o tamanho é 98, 98. Na minha janela de propriedades do visual studio, o tamanho é 131, 121. Veja a imagem abaixo:
O mesmo botão, em outra máquina:
O problema é quando faço alguma alteração na GUIdesigner, ele modifica meu arquivo designer.cs como ele é no designer da GUI. Deve ser um problema com meu estúdio visual, como quando meu colega de trabalho obtém a mesma versão do TFS, ele não tem o mesmo problema. Alguma sugestão sobre como corrigir esse problema?
Respostas:
-1 para resposta № 1Solução:
Eu mudei o modo de escala de Font para DPI, agora tudo funciona bem.