Bekijk de onderstaande video om te zien hoe je onze site als een web app op je startscherm installeert.
Opmerking: Deze functie is mogelijk niet beschikbaar in sommige browsers.
Hoi,
Ik heb een programma gemaakt, maar als ik die wil afsluiten gaat hij ook weg.
Alleen blijft hij nog in het lijst met processen.
Weet iemand hoe ik ervoor zorg dat die dan ook helemaal afsluit?
Bvd.
Private Sub main_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
Dim iAntwoord As Integer = MsgBox("Weet je zeker dat je wilt afsluiten?", MsgBoxStyle.Exclamation Or MsgBoxStyle.YesNo, "Afsluiten")
If iAntwoord = Windows.Forms.DialogResult.No Then
e.Cancel = True
End If
End Sub
Code:Private Sub main_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing Dim iAntwoord As Integer = MsgBox("Weet je zeker dat je wilt afsluiten?", MsgBoxStyle.Exclamation Or MsgBoxStyle.YesNo, "Afsluiten") If iAntwoord = Windows.Forms.DialogResult.No Then e.Cancel = True End If End Sub
Private Sub main_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
Dim iAntwoord As Integer = MsgBox("Weet je zeker dat je wilt afsluiten?", MsgBoxStyle.Exclamation Or MsgBoxStyle.YesNo, "Afsluiten")
If iAntwoord = Windows.Forms.DialogResult.No Then
e.Cancel = True
[B] Else
Application.Exit()[/B]
End If
End Sub
Code:Private Sub main_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing Dim iAntwoord As Integer = MsgBox("Weet je zeker dat je wilt afsluiten?", MsgBoxStyle.Exclamation Or MsgBoxStyle.YesNo, "Afsluiten") If iAntwoord = Windows.Forms.DialogResult.No Then e.Cancel = True [B] Else Application.Exit()[/B] End If End Sub
We gebruiken essentiële cookies om deze site te laten werken, en optionele cookies om de ervaring te verbeteren.