Results 1 to 2 of 2

Thread: Forrm Start up Pos. (asap)

  1. #1

    Thread Starter
    Addicted Member Stick's Avatar
    Join Date
    Aug 1999
    Location
    Iowa
    Posts
    152

    Post

    Hello
    I was wondering how to get my form back to the start up postion after a user moves it!
    I Still want the user to beable to move it but i want to be able to move it to the start up postion.

    ------------------
    _-_-_-_-_-_-_-_-_-_-_-_-_
    Thanks
    Sean Stickrod
    ICQ:9639200



  2. #2
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111

    Post

    put this in a timer:
    make the interval about 500
    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
    This works but how fast it responds depends on the timer interval.

    ------------------
    DiGiTaIErRoR

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width