|
-
Jun 11th, 2007, 05:05 AM
#1
Thread Starter
New Member
Module problem
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|