Вы находитесь на странице: 1из 1

Task: Set Message Box On FormClosing Event ....

Private Sub Form1_FormClosing(ByVal sener !s System.Ob"e#t$ ByVal e !s


System.%ino&s.Forms.FormClosingEvent!rgs' (anles MyBase.FormClosing
)im _msgresult !s )ialog*esult
_msgresult + MessageBox.S,o&(-)o .ou %ant /o Close /,is Form 0-$ -Close
Form-$ MessageBoxButtons..es1o$ MessageBox2#on.2n3ormation'
23 _msgresult + %ino&s.Forms.)ialog*esult..es /,en
e.Can#el + False
Else
e.Can#el + /rue
En 23
En Sub

Вам также может понравиться