Results 1 to 5 of 5

Thread: [RESOLVED] MDI Child Forms

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2007
    Location
     
    Posts
    453

    Resolved [RESOLVED] MDI Child Forms

    Alright, I have a button press, and I was was wondering that is there a way to make a new mdi child form like another form when clicked, like when the button is clicked, it automatically makes a duplicate of form1...
    Haikus are easy.
    But sometimes they don't make sense.
    Refrigerator.

  2. #2
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: MDI Child Forms

    Not exactly a duplicate as it appears on the screen when button is pressed but rather as it was designed:
    Code:
    Private Sub Command1_Click()
    Dim frm As Form1
    Static counter As Integer
    
        Set frm = New Form1
        
        counter = counter + 1
        frm.Caption = "New Document " & counter
        frm.Show
    
    End Sub

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2007
    Location
     
    Posts
    453

    Re: MDI Child Forms

    what do you mean "designed"
    Haikus are easy.
    But sometimes they don't make sense.
    Refrigerator.

  4. #4

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2007
    Location
     
    Posts
    453

    Re: MDI Child Forms

    Ok, thank you...
    Haikus are easy.
    But sometimes they don't make sense.
    Refrigerator.

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