Results 1 to 4 of 4

Thread: Form Moved Event?

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2001
    Posts
    6

    Form Moved Event?

    I have a main form and a secondary form that I would like to keep "hooked" to the main. The only way I could come up with would be to now if the Main form had moved and move the secondary form occordingly.

    How can I do this?

  2. #2
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    Subclass the form for the WM_MOVE message. On thet message move the second form.
    Code:
    WM_MOVE
    The WM_MOVE message is sent after a window has been moved.
    This is one way.
    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

  3. #3
    AutoBot
    Guest

    Try

    Try setting one form as a parent to the other.
    Attached Files Attached Files

  4. #4

    Thread Starter
    New Member
    Join Date
    May 2001
    Posts
    6

    subClassing?

    Vlatko, How do I go about sub classsing?

    Autobot, I think you were close but I need the form attached to the side of the main form, so that it moves with the Main form.

    Thanks

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