12-21-2009, 01:59 PM
I can think of a very basic logic for this, try may be this can be helpful
get 'x' and 'y' properties of both edit boxes.
if x is same for both and y differs - edit boxes are placed vertically i.e. in different rows
if y is same for both and x differs - edit boxes are placed horizontally i.e. in same row
get 'x' and 'y' properties of both edit boxes.
if x is same for both and y differs - edit boxes are placed vertically i.e. in different rows
if y is same for both and x differs - edit boxes are placed horizontally i.e. in same row