473,385 Members | 1,569 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,385 software developers and data experts.

geting the x and y postion

37
How do I get the x and y postion of an object this is what I tryed I am useing vb 2008
TextBox1.Text = TextBox1.Location
Feb 8 '08 #1
1 917
daniel aristidou
491 256MB
How do I get the x and y postion of an object this is what I tryed I am useing vb 2008
TextBox1.Text = TextBox1.Location
Ok...your close....
I thinks its best to do it like this
Expand|Select|Wrap|Line Numbers
  1. Dim txt1ypos as integer
  2. Dim txt1xpos as integer
  3. txt1ypos  = textbox.location.y
  4. txt1xpos = textbox.location.x
  5. Textbox1.text = "Y = " & txtypos & " X = " & txt1xpos 
  6.  
Hope this helps!!
ps:might be position.x instead of location.x......Cant remember but its one of the 2
Feb 8 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: wqhdebian | last post by:
I get a resutSet from one database as xml and want to insert these data to another database,and I want to form sql statement from the xml, and then using these sql statement to insert these data....
5
by: Ron Brennan | last post by:
Good evening. I'd like to replace whatever character is aways at the postion 2 in a String with another character. For example, the y in wxyx with b. I'm sure it must be possible, but I'll be...
3
by: Emjay | last post by:
Newbie needs to know how to set the mouse position.
0
by: Guoqi Zheng | last post by:
Sir, A few days ago, I asked a question about how to insert something into the last row of a repeater control. I got the following code from Ken, Private Sub Page_PreRender (ByVal sender As...
4
by: Woody Splawn | last post by:
I have a winform where I would like to explicitelty set the Horizontal scroll postion for a panel. I would have guessed something like the following would work but it does not ...
3
by: News | last post by:
I know that IE does not support position: fixed, yet I have seen elements that seem to float down on a IE browser. Where can I go to learn how to make elements appear to be postion: fixed on IE? ...
1
by: lg | last post by:
Is there a way to set/get vertical scroll postion without Javascript. At times I need to repaint the page but the page should scroll to certain postion depending on user input.
8
by: Lukas Designs | last post by:
My design is not centering in Firefox but it looks correct in IE, can anyone tell me that is wrong: Here is the page: http://lukasdesigns.com/nolte/ Here is my CSS code: /* CSS Document */ ...
3
by: sungung | last post by:
Hi group, I want to back orginal scroll postion after reload page. Is it possible? My situation is call popup windows -enter data on popup -close popup -refresh parent page -reload data. As...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.