AutoScaleDimensions Property

  • Thread starter Thread starter thomasp
  • Start date Start date
T

thomasp

I started a project in VB.NET 2003 and moved it to VB 2005 EE. I got all
the errors and warning worked out except this:

Warning 1 'Public Overridable Property AutoScaleBaseSize() As
System.Drawing.Size' is obsolete: 'This property has been deprecated. Use
the AutoScaleDimensions property instead.
http://go.microsoft.com/fwlink/?linkid=14202' C:\Documents and Settings\All
Users\Documents\TAM\TAM\frmImport.vb 265 9 TAM

The offending line is this:

Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)

Thanks,

Thomas
 
In .NET2 the sizing of the Form is not effected by the AutoScale setting.
AutoScale and the associated AutoScaleBaseSize are used in .NET1 to
automaticllay increase/decrease the size of the Form in order to maintain
the same apparent size to take into account differente DPI and large/normal
font settings.

I suggest you just remove the offending line.

Phil Wright
Follow my startup microISV at...
http://componentfactory.blogspot.com
 
Back
Top