şimdi forum herhangi bir tarafına çift tıklayıp kod kısmını açıyoruz ve boş bir yere şunları yapıştırıyoruz
Kod:
Private Sub Form1_Closing(sender As Object, e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
If Not MessageBox.Show("Çıkış Yapmak İstediğinize Emin misiniz?", "Çıkış", MessageBoxButtons.YesNo, MessageBoxIcon.Question) = DialogResult.Yes Then
e.Cancel = True
End If
End Sub