hi,

im trying to create a global procedure in my class module that calls a form

i have these codes on every form but the form im calling differs... this is just an example.
Code:
'Code I have in my Form1 in a button to call Form2.
Dim myForm2 as New Form2
myForm2.MdiParent = Me.MdiParent
myForm2.Show
i tried creating a module and placed these codes

Code:
    Public Sub Load_Form(ByVal FormToLoad As Form)
        Dim Active_Form As New FormToLoad
        Active_Form.MdiParent = Me.MdiParent
        Active_Form.Show
    End Sub
unfortunately, there are some errors on this. those underlined causes some problems... are there any other approach on how to do this?