on 09-24-2008 10:08 AM
Hi All,
when i am building my application i am getting error message as follows.
"Reference to a non-shared member requires an object reference.".
pls help me to fix this.
i have restarted my system still it is saying same error message.
Thanks in Advance,
With Regards,
Raju.
this helped me to solve the problem
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Abhishek,
It is working.
With Regards,
Raju.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
A non-Shared member, or instance member, is one that is called on an instance of the class. If you re trying to call a method(say MethodA) of a class(ClassA) on another class(ClassB) directly then it is not permitted. You have to create an instance of the class(ClassA) and then call its method(MethodA) in the class(CLASSB).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.