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.Locati on
Ok...your close....
I thinks its best to do it like this
[CODE=vb]
Dim txt1ypos as integer
Dim txt1xpos as integer
txt1ypos = textbox.locatio n.y
txt1xpos = textbox.locatio n.x
Textbox1.text = "Y = " & txtypos & " X = " & txt1xpos
[/CODE]
Hope this helps!!
ps:might be position.x instead of location.x..... .Cant remember but its one of the 2
Comment