cannot implicitly convert type entry.forms to bool

  • Thread starter Thread starter Ravi Kumar12233
  • Start date Start date
R

Ravi Kumar12233

Guest
Hello all ,

to open another form from my dashboard i am using this below code:

private FrmDataEntry _instance = null;


private void Btngotoentryform_Click(object sender, EventArgs e)
{

if (_instance = null)
{
_instance = new FrmDataEntry();
_instance.Show();
}
else
{
_instance.WindowState = FormWindowState.Maximized;
_instance.Activate();
}
}
But this is showing error message as "cannot implicitly convert type 'MS_Dies.FrmDatantry' to bool"..please guide me how to solve this.

Continue reading...
 
Back
Top