windows form with some errors