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#
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted Jul 24, 2015, 2:29 AM EDT
Rajeev PunhaniRank #551 · 4.4K reputationPosted Jul 24, 2015, 2:51 AM EDT