am a begniner in c#.currently am doing a project "Address Book" in C# visual studio 2005.and here am using Oledb connection....i find one error in the following code while debugging..the code is as follows. the error is is in red marked line.But the same code when i used in Visual studio 2003 it works out.and here it shows this error while debugging.and the error is.
NullReferenceException was unhandled.
object Refrence not set to an instance of an object
CODE
{
button2.Enabled =
button3.Enabled =
}
textBox2.Text = address.name;
textBox3.Text = address.address;
textBox4.Text = address.phone;
textBox5.Text = address.father;
dateTimePicker1.Value = address.DOB;
textBox6.Text = address.Quali;
textBox7.Text = address.Nationality;
textBox8.Text = address.Design;
textBox9.Text = address.Email;
richTextBox1.Text = address.Remark;