This is the method you are making call from
private void OnFormClosing(object Sender, EventArgs e)
private void formcloasing()
{
Class cls = new cls();
cls.RemovefromOpenedChats((int)this.Tag);
}
..and you're passing a parameter
base.OnFormClosing(e);
Which is completely invalid.