Hi nanonerd and JWalsh,
Take another look at Chapter 5, page 156. += is used to append a new value to whatever was already there in the label. With using just =, you would overwrite the existing value.
On the first event, the label is indeed empty so an equals sign would suffice. However, since this method is called multiple times during the same request, an equals sign would overwrite the previous value on each call. This in turn would only output the name of the very last event that executed. By using +=, the Text property is expanded on each call, giving you a list of the event handlers that have been called.
Hope this helps,
Imar
|