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.