When i press a X on the top right side of the form i have a closing event like when i make a close by programm. In which way i can recognize this difference? in vb6 or vba is possible,but in vb.net i dont find the way. Thank's Gpaolo