473,506 Members | 16,954 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

changing coordinate of form

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.
Thanking You.
K.N.Ranjit
Nov 20 '05 #1
1 1327
Simply flip the Y coordinate mathmatically (Y = MaxHeight - Y).

-Rob Teixeira [MVP]

"K.N.Ranjit" <kn******@rediffmail.com> wrote in message
news:07****************************@phx.gbl...
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.
Thanking You.
K.N.Ranjit

Nov 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
4323
by: MissiMaths | last post by:
Does anyone know of a way to change the length and width of a form in code? Say if someone presses a button the form doubles in size to reveal a some text boxes. I just need the code for the size...
1
7658
by: blueturtle | last post by:
Hi, I've implemented a hook (WH_CALLWNDPRO), using the sample posted at MSDN magazine. ( see url: http://msdn.microsoft.com/msdnmag/issues/02/10/CuttingEdge/ ) I succeed in intercepting the...
1
2288
by: OtisUsenet | last post by:
Hello, Is there a way to use JavaScript to push a page element (a DIV block, for example) down the screen, so it sits at the bottom of the browser window. For example of a bad footer...
3
4666
by: Aziz | last post by:
1. I have a shopping basket DataGrid with a list of products. What I want to do is when the user clicks on a row, a button will become visible/be created that allows user to edit the quantity. The...
0
1194
by: Simmy | last post by:
I posted this on the MSDN forums and haven't gotten any response. Is there a way to determine a Datagridview column x coordinate? I don't mean when a user clicks and the hittest method is used to...
0
2680
by: peradino | last post by:
Hi I have a problem when I want to know how far my cursor is from the top of pictureBox. I can get mouse coordinate but it is screen coordinate. I can get the top position of my pictureBox...
9
5393
by: Eric.Gabrielson | last post by:
Hello, I am very knew to python and am attempting to write a program in python that a friend of mine is having to write in java. I am doing this for fun and would like some help as to how i can...
0
2094
by: jigsmshah | last post by:
I need to print a text file .When i print it ,it is not printed exactly form 0,0 coordiante of the page. I mean the top most left corner.It is leaving some margin from top and from left.The code is...
12
18321
by: Petra Rohmer | last post by:
Hello, I want to ake following 0,0 (900mm,900mm) -------------------------------------- |....................................| |....................................|...
0
7218
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
7307
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7021
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7478
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
5614
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,...
1
5035
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...
0
3188
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3177
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
409
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.