put this in a timer:
make the interval about 500
This works but how fast it responds depends on the timer interval.Code:Static FormX, FormY, OldX, OldY, orgX, orgY If orgX = "" Then orgX = Form1.Left orgY = Form1.Top End If If OldX = "" Then OldX = Form1.Left Else OldX = FormX End If If OldY = "" Then OldY = Form1.Top Else OldY = FormY End If FormX = Form1.Left FormY = Form1.Top If OldX <> FormX Then Form1.Left = orgX If OldY <> FormY Then Form1.Top = orgY
------------------
DiGiTaIErRoR




Reply With Quote