Question instance qualifying expression may not be evaluated

kkprakashmsc

Member
Joined
Jan 2, 2009
Messages
8
Programming Experience
1-3
Access of shared member constant member enum member or nested type through an instance qualifying expression may not be evaluated

Iam getting this above exception while onclick of the check box control will any one can help me, how to solve this?
 
Last edited:
It means you are trying to qualify a shared member by some instance, shared members are only accessed by the type. Example:
VB.NET:
Dim x As New Sample
x.SharedMember() 'wrong, x instance is not evaluated.
Sample.SharedMember() 'correct, qualifying shared member only by type.
 
Back
Top