-
Data Scrolling
Im using VB6.0 and now starting to upgrade to VB.NET.
The problem is, i made a VB.NET program which only displays a database thru datagrid and textboxes. im successful with that but the problem is whenever i scroll through the data backward or going back to previous i have this error appearing:
An unhandled exception of type 'System.NullReferenceException' occurred in system.windows.forms.dll
Additional information: Object reference not set to an instance of an object.
can anyone help me how to get rid of that error, please.
-
Post the code you are having problem with.
-
Data Scrolling
this is the code for the Movefirst and MovePrevious:
Private Sub btnmovefirst_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnmovefirst.Click
mycursor.Position = 0
txtvalues()
End Sub
Private Sub btnmoveprevious_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnmoveprevious.Click
mycursor.Position = mycursor.Position - 1
txtvalues()
End Sub