Hi,

In my application I have:
1 MDI (MDIParent1)
2 Forms (frm1 and frm2)
1 Module (module1)

In MDIParent1 I have the foolowing code:

Sub New()

InitializeComponent()

Dim f1 As New frm1: f1.MdiParent = Me : f1.Close()
Dim f2 As New frm2: f2.MdiParent = Me : f2.Close()
end sub

I would like to init module1 too like I done for frm1 and frm2 because when
I am calling a function that is in the module I get an error:

"The type initializer for 'ApplicationName.Module1' threw an exception."
In addition (in the add watch during debug):
"reference to a non-shared member requires an object"
Please help


Eric H.