linking a form to different forms

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alodes
    New Member
    • Apr 2010
    • 4

    linking a form to different forms

    helo am new in vb6. i have three forms and i want form 1 to link to form2 and form3 link to form2 please help me with the code
  • vb5prgrmr
    Recognized Expert Contributor
    • Oct 2009
    • 305

    #2
    What do you mean by link?

    Comment

    • alodes
      New Member
      • Apr 2010
      • 4

      #3
      Originally posted by vb5prgrmr
      what do you mean by link?
      i mean tto connect

      Comment

      • vb5prgrmr
        Recognized Expert Contributor
        • Oct 2009
        • 305

        #4
        Connect how?

        In form1...
        Form2.show
        me.hide 'or unload me

        in form2
        form3.show
        me.hide 'or unload me

        Or are you talking about one form containing another form? If so, then you will need to add a MDI form to your project and your existing forms will need their MDIChild Property set to true.

        Side by side???
        In form1
        Me.Move 0, 0, (screen.width / 3), (screen.height / 3)

        in form2
        me.move form1.width, 0, (screen.width / 3), (screen.height / 3)

        in form3
        me.move (form2.left + form2.width), 0, (screen.width / 3), (screen.height / 3)



        Good Luck

        Comment

        Working...