reference to a non-shared member requires an object reference. vb.net code example Example: reference to a non-shared member requires an object reference vb.net Dim gen = New General()