jason 0

jason 0

  • NA
  • 1
  • 0

Control event handling

Aug 26 2004 12:54 PM
Hi all -- I've been searching for some information on how the whole .NET event model is structured but have found very little useful information. Questions: -What's the order in which different object's events are triggered by Windows? So, for example, when the user clicks the mouse, does the underlying form get the event, intersect the pointer location with all of its controls and then trigger the contol's mouseclicked event? Or does windows handle this at a lower level and first trigger the control's mouseclicked events? -Is there any way to make a control NOT respond to certain events? For example, is there any way to temporarily make a button not respond to mousedowns/ups/clicks/etc? Initially I was trying to unsubscribe the button's handler delegates from the event but I couldn't get that to work... Thanks in advance, Jason

Answers (1)