473,399 Members | 4,254 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

VB.NET and VB Form.Scale

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
2 7391
"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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: News Central | last post by:
I resize a control in a Form wth Scale mode set to vbInches. However, the control's size changes in different screen resolution, I thought that if Scale mode is set to vbInchs, then the control...
6
by: Christopher Brandsdal | last post by:
Hi! I get an error when I run my code Is there any other way to get te information from my form? Heres the error I get and the code beneath. Line 120 is market with ''''''''''''Line...
0
by: William Bub | last post by:
Can someone explain how to scale a form. I was originally going to calculate the new size and location for every control, but the form I am using has hundreds of circles on it and it is very...
10
by: DFS | last post by:
I'm sure this has been discussed before, but I'm too tired to hunt for it. I have a survey table containing questions with different answer scales. Some are 1 to 5, others are A,B,C, etc. I show...
11
by: Jozef | last post by:
I have some old code that I use from the Access 95 Developers handbook. The code works very well, with the exception that it doesn't seem to recognize wide screens, and sizes tab controls so that...
0
by: Balu Ramachandran | last post by:
How can I create the Thumbnail view from the form? In the following approach I tried but Iams facing some limitations to get the thumbnail image of the form alone. Plaese any one can help in...
0
by: Frank | last post by:
Hi, I use form.scale to scale up/down my form and controls, works great.But... when sizing in and the form and controls become bigger, at a certain moment the form will be as big/bigger than the...
4
by: sadc1986 | last post by:
How does one introduce multiple worksheets in a excel using Xslt Transforms my code... Please suggest <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"...
7
by: sentra50 | last post by:
hello, I am trying to do the following: On load, a form must scale itself with a number of pixels on the X axis, lets say 100 pixels for example. Also it must do this on a timer, to ensure a...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.