Click here to Skip to main content
15,881,413 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
We all know that if we put (Me) in a module it doesnt make any sense
but what can i put instead of it
i want to use it in (invoke request) and (invoke)

What I have tried:

If Me.InvokeRequired Then
                       Dim j As New _Data(AddressOf Data)
                       Me.Invoke(j, New Object() {file, B})
                       Exit Sub
                   End If
Posted
Updated 28-Nov-17 9:02am
v2
Comments
ZurdoDev 28-Nov-17 14:56pm    
Me refers to the class you are in and is perfectly fine to use. You can omit it as it is implied. Does that answer what you are asking because it isn't very clear.

1 solution

There is no such thing in a Module.

"Me" refers to the current instance of the class the code is in. There is no equivalent in a Module because you don't create an instance of a Module.

What are you doing with this code and why is it in a Module?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900