2
Reply

object reference not set to an instance of an object. in c#

Mahesh Gore

Mahesh Gore

Jul 24 2015 6:16 AM
497

next line is in connection.cs file= 
public OleDbDataReader dr;
 
 
 
and this is in form.cs file 

oleDbCommand.Connection = connection.Conn;

connection.dr = oleDbCommand.ExecuteReader();

 
i got exception = 
object reference not set to an instance of an object. in c#

Answers (2)