By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,694 Members | 1,332 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,694 IT Pros & Developers. It's quick & easy.

VB.NET and VB Form.Scale

P: n/a
Hi all,

I was just wondering what is the equivalent of Form1.Scale (-160,
-160)-(90, 95) in VB.NET?

The Form1.Scale(...) in the VB.net is not the same as the old VB!
Thanks in advance

Feb 14 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"placid" <Bu****@gmail.com> schrieb
Hi all,

I was just wondering what is the equivalent of Form1.Scale (-160,
-160)-(90, 95) in VB.NET?

The Form1.Scale(...) in the VB.net is not the same as the old VB!

Did you know this?
http://msdn.microsoft.com/library/en...icVeterans.asp

Especially:
http://msdn.microsoft.com/library/de...asp?frame=true

and
http://msdn.microsoft.com/library/en...alBasicNET.asp

and
http://msdn.microsoft.com/library/en...ions_about.asp

Armin

Feb 14 '06 #2

P: n/a
There isn't anything that will work exactly the same way.

You can combine rotation, scaling, and translation to get the same effect
on coordinate systems in VB.net as you had in the old VB, but this will
have additional effects in VB.net that you wouldn't see in old VB.

In particular the scaling and rotation effects will also apply to the
way that text appears and the width of lines that you draw.
There's a hack that allows you to specify a pen width of -1 to draw
lines with a width of 1 pixel. If you want a line 2 pixels wide, you have
to
do a scale transform on the pen that reverses the scale transformation
that you've made to your coordinate system. (I wonder why they
didn't allow you to use -2 to get the 2 pixel width; I tried it, but you
still
get 1 pixel lines.)

"placid" <Bu****@gmail.com> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
Hi all,

I was just wondering what is the equivalent of Form1.Scale (-160,
-160)-(90, 95) in VB.NET?

The Form1.Scale(...) in the VB.net is not the same as the old VB!
Thanks in advance

Feb 14 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.