AutoScaleDimensions Property

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
 
P

Phil Wright

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top