單個窗體退出是me.close()程序退出(多窗體)是end 或者appliaction.exit()
昏死,你說清楚啊 ! If MsgBox("是否退出?", MsgBoxStyle.Question + MsgBoxStyle.YesNo + MsgBoxStyle.DefaultButton2, "System Message") = MsgBoxResult.No Then e.Cancel = True Else e.Cancel = False
End If放在closing事件里面