In my winform application ,their are error occured on client side.that is when i clicked on menu ,button .Error like this "object reference not set to an instance of an object".
AND on my developer side machine can run same successfully opened while clicking menu and button.
but only client machine get error.please tell me solution for this.
my menuitem code like this,
private void searchToolStripMenuItem_Click(object sender, EventArgs e)
{
try
{
Search obj6 = new Search();
obj6.Show();
this.Hide();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
and my button code is like this,
private void btnOpen_Click(object sender, EventArgs e)
{
try
{
Form1 obj3 = new Form1();
obj3.Show();
this.Hide();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
What I have tried:
i have tried try catch block to get exact problem,but still same