B
Bob Day
Using VS2003, VB.NET, MSDE...
The code below is from a demo program. I don't under stand the Byval e as
CancelEventsArgs as an argument, and then the first line of code e.cancel =
false.
What is 'e' used for? How is it generated?
Thanks
Bob
Private Sub FormB_During_Closing(ByVal sender As System.Object, ByVal e As
CancelEventArgs) Handles MyBase.Closing
' Purpose: This event executes automatically when a form is closing (i.e.
when they choose File, Exit to execute form.close). It will first close all
Trunk Threads, and then all NON-trunk threads. See each of those methods for
more documentaion.
'don't cancel exit
e.Cancel = False
' code to process closing
end sub
The code below is from a demo program. I don't under stand the Byval e as
CancelEventsArgs as an argument, and then the first line of code e.cancel =
false.
What is 'e' used for? How is it generated?
Thanks
Bob
Private Sub FormB_During_Closing(ByVal sender As System.Object, ByVal e As
CancelEventArgs) Handles MyBase.Closing
' Purpose: This event executes automatically when a form is closing (i.e.
when they choose File, Exit to execute form.close). It will first close all
Trunk Threads, and then all NON-trunk threads. See each of those methods for
more documentaion.
'don't cancel exit
e.Cancel = False
' code to process closing
end sub