Results 1 to 3 of 3

Thread: Re-using a form.

  1. #1

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    Is there any way to re-use a MDI child form twice?. I mean, can I open 2 (or more) equal MDI child forms. But with different content in its controls, obviously. Otherwise, what would be the use?
    What I want to do is to let the user show, e.g., the data (name, address, telephone, etc) of two or more pupils of the college using the same MDI child form I've already programmed (with all its code)
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  2. #2
    Fanatic Member ExcalibursZone's Avatar
    Join Date
    Feb 2000
    Location
    Western NY State
    Posts
    908
    Code:
    Private Sub ReUseForm()
        Dim chldForm as MDIChildForm1
    
        Set chldForm = New MDIChildForm1
        chldForm.Show
    End Sub
    A very simple example, but it is indeed one that will allow you to use the same mdi child form over and over again. You'll need to give it the new data in another method, but this should get you started.
    -Excalibur

  3. #3

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    Thanx a lot... That was what I was looking for. Can't believe it was that easy.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

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