dear all
I wrote a class called "sqldatabase" 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()
{
InitializeComponent();
}
private void Inst1_Click(object sender, EventArgs e)
{
a.Buliding = Buliding.Text.ToString();
}
so how make this reference between two lcass such that I can access one class through the other?
thanks