R
Rob
When a custom control is used within a form, that control does not get
events directly. I've run into this a couple times with both mouse
and keyboard events.
Ex: A custom control inherits from UserControl (or Panel, etc). If
that particular control is being edited, it IS possible to assign
handlers and get events.
However, when the control is used on the main form, assigning a
handler to the particular control does nothing--the handler never
executes.
Rephrased: Using a ListView directly on a form == no problem.
CustomListView control has a ListView anchored to all sides. Drag it
to a form. Assign event handlers. Nothing.
This has to be something to do with the hierarchy of event
propagation, right? How is this normally handled?
events directly. I've run into this a couple times with both mouse
and keyboard events.
Ex: A custom control inherits from UserControl (or Panel, etc). If
that particular control is being edited, it IS possible to assign
handlers and get events.
However, when the control is used on the main form, assigning a
handler to the particular control does nothing--the handler never
executes.
Rephrased: Using a ListView directly on a form == no problem.
CustomListView control has a ListView anchored to all sides. Drag it
to a form. Assign event handlers. Nothing.
This has to be something to do with the hierarchy of event
propagation, right? How is this normally handled?