You could hook into the eventQueue and look for the message WM_MOVING (I don't think that VB automatically checks/maps that message, but it is there). When this message gets fired, check the forms Top and Left properties and compare them with the screen size and if they are not within the bounds that you have defined, stop the move. - Jeff Marler B-)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.