|
-
May 22nd, 2008, 10:23 AM
#11
Re: 'Me' is not valid within a Module
To get back to the original problem :
'Me' is not valid within a Module
From MSDN, it says:
A keyword related to class instances, such as Me or MyBase, is used inside a module.
This means that Me cannot be used inside a module, because the Module is not a class. What you can do is to create a object of that class ( so, if you used this code in a class called Form1, you should create an object of Form1 ) :
Code:
Dim ExampleFormClass As New Form1
Then, instead of using the word Me, you could've used the word ExamplFormClass
Just in case anyone was interested
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
|