Results 1 to 2 of 2

Thread: Position A Form

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2000
    Posts
    93
    How can a form be located relative to the position of the mouse given the x,y co-ordinates of the mouse from the "GetCursorPos" call?

    I am using the x,y values for the Left & Top properties of the form but it seems to have a scaling problem ie....the form is nowhere near the mouse position!

  2. #2
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    Set the form's scalemode to 3-pixel.
    I am become death, the destroyer of worlds.
    mail:[email protected]

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

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