On 6 Apr 2006 09:03:57 -0700, "gr***********@gmail.com"
<gr***********@gmail.com> wrote:
I'm developing at 1920x1280 and the form size is fixed at 800x800.
This appears to be limited to my machine as others have opened the
project under vs2005 and it hasn't pulled it's form-size changing bit
on their machines. I've got a number of extensions I use in VS so I'm
poking around seeing if one of them is doing it.
Greg,
Not sure if this is relevant, but there are differences between the
code from a VS2003-generated form and VS2005. If it's a scaling
problem, you could try changing to the newer float format to see if
that helps.
While I haven't seen an problems created by porting VS2003 code, this
could be the source of what you're seeing.
Note, in the code below:
2003 uses AutoScaleBaseSize ... DrawingSize(5, 13)
2005 uses AutoScaleDimensions ... DrawingSizeF(6F, 13F)
2005 also adds AutoScaleMode()...
Excerpt from generated code from similar sized forms:
VS2003:
//
// Form1
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(292, 266);
this.Controls.Add(this.button1);
this.Name = "Form1";
this.Text = "Form1";
this.ResumeLayout(false);
}
VS2005:
//
// Form1
// this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(292, 266);
this.Controls.Add(this.button1);
this.Name = "Form1";
this.Text = "Form1";
this.ResumeLayout(false);
}
I initially thought that you'd need to change the float '6F' to '5F'
to stay the same size as the 2003-generated code, but this does not
appear to be the case.
Off-subject: What type of LCD are you using at 1920x1200? I just saw
a Samsung wide-screen (242?) next to a Sony and the Samsung looked
brighter and more vibrant. Do you have to set a custom font scaling
to read code all day without fatigue?
Please follow up if you manage to fix this. I'm curious about effects
of porting 2003 code.