Results 1 to 3 of 3

Thread: Loading Forms *RESOLVED*

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2000
    Location
    Chesterfield, UK
    Posts
    298

    Loading Forms *RESOLVED*

    When loading forms at the moment I am using the following -

    VB Code:
    1. Sub LoadReportsForm()
    2.         Dim NewMDIChild As New frmReportViewer()
    3.         'Set the Parent Form of the Child window.
    4.         NewMDIChild.MdiParent = Me
    5.         'Display the new form.
    6.         NewMDIChild.Show()
    7.     End Sub

    But I could end up with around 15 forms in my solution and I don't really think I want to use this code for each form.

    Is there a way that I can make this into one sub that will load any form by just specifying the form I would like to load???

    Regards,


    Matt.
    Last edited by MattJH; Jul 16th, 2003 at 06:26 AM.

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