dear all
I wrote a class called "sqldatabas e" and this class has variable caleld Buliding
and from other class I tried to insert the string inside buliding variable
and I got these message
"Object reference not set to an instance of an object"
here the code
public partial class Import : Form
{
sqldatabase a = null;
public Import()
{
InitializeCompo nent();
}
private void Inst1_Click(obj ect sender, EventArgs e)
{
a.Buliding = Buliding.Text.T oString();
}
so how make this reference between two lcass such that I can access one class through the other?
thanks
I wrote a class called "sqldatabas e" and this class has variable caleld Buliding
and from other class I tried to insert the string inside buliding variable
and I got these message
"Object reference not set to an instance of an object"
here the code
public partial class Import : Form
{
sqldatabase a = null;
public Import()
{
InitializeCompo nent();
}
private void Inst1_Click(obj ect sender, EventArgs e)
{
a.Buliding = Buliding.Text.T oString();
}
so how make this reference between two lcass such that I can access one class through the other?
thanks
Comment