reply didnt work out

K

K.N.Ranjit

Hi to all friends out there.I am presently working in TCS
and I am supposed to do the work given to me in line
cordinates using VB.net.But over here I face a problem (ie)
I want my coordinate (0,0) to start in the lower-left
corner of my form instead of the default upper-left corner
of the form.If anyone could provide me the solution I
would be very contended. I could do the same in VB by just
changing that scale top property which would sort out my
problem but unfortunately VB.net does'nt support scaletop
property in form.So,if any property which is EQUIVALENT to
scale top property please let me know the required coding.
I got one reply from this newsgroups (ie)
From: Rob Teixeira [MVP]
Date Posted: 12/29/2003 9:48:00 AM
Simply flip the Y coordinate mathmatically
(Y = MaxHeight -Y).
-Rob Teixeira [MVP]

This reply does'nt work.

Thanking You.
K.N.Ranjit
 
A

Armin Zingler

K.N.Ranjit said:
Hi to all friends out there.I am presently working in TCS
and I am supposed to do the work given to me in line
cordinates using VB.net.But over here I face a problem (ie)
I want my coordinate (0,0) to start in the lower-left
corner of my form instead of the default upper-left corner
of the form.If anyone could provide me the solution I
would be very contended. I could do the same in VB by just
changing that scale top property which would sort out my
problem but unfortunately VB.net does'nt support scaletop
property in form.So,if any property which is EQUIVALENT to
scale top property please let me know the required coding.
I got one reply from this newsgroups (ie)
From: Rob Teixeira [MVP]
Date Posted: 12/29/2003 9:48:00 AM
Simply flip the Y coordinate mathmatically
(Y = MaxHeight -Y).
-Rob Teixeira [MVP]

This reply does'nt work.

Could you please show us some code?
 
C

Cor

Hi Armin,

This is not a flame,

Your quotings become longer and longer

just a reminder.

Cor
 
A

Armin Zingler

Cor said:
This is not a flame,

Your quotings become longer and longer

just a reminder.

Right, but I referred to the whole posting and the whole problem because it
was the first one.
 
R

Ron Allen

K.N.
You can do a TranslateTransform on the graphics to move the origin to
the bottom left but this would leave your coordinates as negative y and
positive x. I believe that you can do a MultiplyTransform to then get the
coordinates to postive y for up leaving positive x for left. Just at the
moment I don't have the time to work out the required matrix though. You
might ask this question in microsoft.public.framework.drawing for a more
detailed answer.
Ron Allen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top