Results 1 to 5 of 5

Thread: form1 and form2 attached how ??

  1. #1

    Thread Starter
    Frenzied Member JasonLpz's Avatar
    Join Date
    Mar 2001
    Location
    Brooklyn, NY
    Posts
    1,335
    I have seen programs where there are to different forms attached together so when you move one the other moves and you can close or minimize one also how can i do this ?
    - JayWare
    Live to love. Not to Hate

    Im to busy to have a site. But I got one and still working on it.

    http://dre3k.net/

  2. #2
    PowerPoster Lethal's Avatar
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    2,496
    Sounds as if you are referring to MDI Forms.

  3. #3
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390
    you can cheat and easily do this...

    in a timer (interval set to 1)

    form2.left = form1.left + form1.width
    Form2.top = form1.top


    or go to Kedamans Site...he has some really good code for this.
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  4. #4
    PowerPoster Lethal's Avatar
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    2,496
    Or, add a MDI form to a project and set the MDIChild property to true for the standard form, and dump this into the MDI's Form_Load event:

    Code:
    Private Sub MDIForm_Load()
        Form1.Show
    End Sub

  5. #5

    Thread Starter
    Frenzied Member JasonLpz's Avatar
    Join Date
    Mar 2001
    Location
    Brooklyn, NY
    Posts
    1,335
    you got it righ geoff_xrx
    - JayWare
    Live to love. Not to Hate

    Im to busy to have a site. But I got one and still working on it.

    http://dre3k.net/

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