By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,376 Members | 3,024 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,376 IT Pros & Developers. It's quick & easy.

closing

P: n/a
hi all,

Private Sub Form1_Closing(ByVal sender As System.Object, ByVal e As
CancelEventArgs) Handles MyBase.Closing

If MsgBox("Really close?", MsgBoxStyle.YesNo Or MsgBoxStyle.Question) =
MsgBoxResult.No Then

e.Cancel = True

End If

End Sub

Private Sub MenuItem28_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MenuItem28.Click

Form1_Closing( ?;? )

End Sub

how can i call the form1_closing sub from sub menuitem28_click

regards Maarten
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Maarten" <gu******@hotmail.com> schrieb:
Private Sub Form1_Closing(ByVal sender As System.Object, ByVal e As
CancelEventArgs) Handles MyBase.Closing
If MsgBox("Really close?", MsgBoxStyle.YesNo Or MsgBoxStyle.Question) =
MsgBoxResult.No Then
e.Cancel = True
End If
End Sub

Private Sub MenuItem28_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MenuItem28.Click
Form1_Closing( ?;? )
End Sub

how can i call the form1_closing sub from sub menuitem28_click


'Me.Close()'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.