This blogger for collected the tip and technical about programming code and how to solve a problem by yourself when you have problem with you personal computer.And I have try to collect code and any technical for find when have a problem again. บล็อกนี้เขียนขึ้นไว้สำหรับแก้ปัญหาคอมพิวเตอร์เบื้องต้นซึ่งผมได้รวบรวม ข้อมูลเทคนิค หรือวิธีการต่างๆ จากประสบการณ์ และจากการค้นข้อมูลในเวปไซต์ และเพื่อเก็บข้อมูลไว้ดูเอง เมื่อเกิดปัญหาอีก
Wednesday, May 10, 2017
Exit button and message box
Private Sub btExit_Click(sender As Object, e As EventArgs) Handles pbExit.Click
If MsgBox("Do you want to quit?", MsgBoxStyle.YesNo Or MsgBoxStyle.DefaultButton2 Or MsgBoxStyle.Question, "Close application") = Windows.Forms.DialogResult.Yes Then
Application.Exit()
End If
End Sub
Subscribe to:
Post Comments (Atom)



No comments:
Post a Comment