|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
VB.NET and VB Form.ScaleHi 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 "placid" <Bul***@gmail.com> schrieb Did you know this?> 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! http://msdn.microsoft.com/library/en-us/vbcon/html/vboriIntroductionToVisualBasic70ForVisualBasicVeterans.asp Especially: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vxconChangesToFormObjectInVisualBasicNET.asp?frame=true and http://msdn.microsoft.com/library/en-us/vbcon/html/vbconGraphicsChangesInVisualBasicNET.asp and http://msdn.microsoft.com/library/en-us/cpguide/html/_gdiplus_coordinate_systems_and_transformations_about.asp Armin 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.) Show quoteHide quote "placid" <Bul***@gmail.com> wrote in message news:1139878490.396572.53620@z14g2000cwz.googlegroups.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 > |
|||||||||||||||||||||||