I am getting a weird error in the VB Code as I learn to use coding. The error: Reference to a non-shared member requires an object reference. Please see Coding example below: I need someone to help me discover why this error is happening.
jjc3397
Private Sub btnCustomersFind_Click( _
ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles btnCustomersFind.Click
Dim filteredView As Data.DataView = _
New Data.DataView(NorthWindDataSet.Customers)
End Sub
End Class
Error Reference to a non-shared member requires an object reference is appearing on: NorthWindDataSet.Customers and has blue line underneath indicating the error in yellow.
jjc3397
Private Sub btnCustomersFind_Click( _
ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles btnCustomersFind.Click
Dim filteredView As Data.DataView = _
New Data.DataView(NorthWindDataSet.Customers)
End Sub
End Class
Error Reference to a non-shared member requires an object reference is appearing on: NorthWindDataSet.Customers and has blue line underneath indicating the error in yellow.