Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How is the Measurement Unit Conversion implemented in Visual Basic .NET?

0
10 Posted

How is the Measurement Unit Conversion implemented in Visual Basic .NET?

0
10

In Visual Basic 6.0, the ScaleMode property can be used to change the coordinate system for a form or PictureBox control from the default scale of twips. Visual Basic .NET does not support multiple coordinate systems; all measurements must be expressed in pixels. When you upgrade a project to Visual Basic .NET, the upgrade wizard automatically converts the design-time coordinates of visual components from twips to pixels. Code that sets the ScaleMode property at run time will cause a compilation error and must be manually modified. The upgrade wizard also uses upgraded methods in the Microsoft.VisualBasic.Compatibility.VB6 namespace to upgrade run-time modifications of a control’s position.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123