i have windows form and on close button i write following line

this.close();

but when i click on the form it give me an error



""Object reference not set to an instance of an object""


any idea. any urgent help would be highly appreciated!!