Hello
I was wondering if I could "snap" windows on edges. So if I have two windows,
then I dragged first to the second window's bottom edge, it will snap together...
Then if I move the second window, then the snapped first window will follow.
Think of Lego pieces.
I've seen some software do this. But I don't know how to make this effect.
Does anyone know how to do this
Thank You so much!
Keehun Nam

Snapped windows?
zdfowler
There are several datatypes in the rectangle class.
for describing this and one thing is true. you only need two dimension to describe a rectangle which is height and width and you alread have this.
Farooq Hawalteh
Dim FormLoc as point = me.location
Al references in windows are to the top lefthand corner.
Topright can be described by Location.x + me.width, location.y
Bottom left = Location.x,location.y + me.height
Bottom right = Location.x + me.width,location.y + me.height
Fizban
Oh, so all I need to do to find all four corners is to find the current position, then add either height, width (or both) to find the coordinates of all four corners... But how do I get the current coordinates of the form If I can, will that point be on which corner (ex. Top Left Corner)
Thanks
Keehun
mehtan_98
Can anyone help me
I've seen this effect on a LOT of programs...
Anyways, if this is not possible, is it possible to find out all four corner's coordinates (on the screen) And store that as an integer (Type problems )
Then I thnk I can make one of my very own...
Keehun Nam