کد زیر رو در Form Closing فرمتون Copy کنین: کد: e.Cancel = True If MsgBox("mikhad az barname kharej shavid ?", MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then End End If