Usha Patil

Usha Patil

  • 1.9k
  • 44
  • 697

System.ObjectDisposedException: 'Cannot access a disposed object.

Nov 25 2020 7:47 AM
How to fix this error. Form2 frm2Obj;private void button1_Click(object sender, EventArgs e){if (frm2Obj is null){frm2Obj = new Form2();frm2Obj.Show();}elsefrm2Obj.Show();}

Answers (2)