.NET Coordinate System

"In Visual Basic 6.0, coordinates for forms and controls were expressed in twips; in Visual Basic .NET, coordinates are expressed in pixels."

and

"ScaleMode
and its related properties and methods (Scale,ScaleHeight,ScaleLeft,ScaleTop,ScaleWidth,ScaleX,ScaleY) are not supported in Visual Basic 2005."

[Visual Studio Express Combined Collection 8. Coordinate System for
Visual Basic 6.0 Users]

Why is this?

Both seem a retrograde step to me, but there must be a good reason. Mustn't there?

Paul

[602 byte] By [PaulHackney] at [2008-1-27]
# 1

This is because the .Net Framework chose to use pixels (a more comprehendable unit - works well with things like hit testing/custom drawing) over any other kind of dialog unit.

A Form will automatically scale itself based on the Font and/or (in Whidbey) DPI.

Check out this article which discusses AutoScaleBaseSize. In VS 2005, we've made further improvements to scaling in the AutoScaleDimensions API.

Jessica at 2007-8-21 > top of Msdn Tech,Visual Basic,Visual Basic Language...