Need control's index for paint event

Have a set (array) of canvas controls with event handlers for the set. MouseDown and MouseUp have the control index as a parameter so I know which canvas was clicked, but Paint does not have an index parameter. So how do I know which canvas I am painting?

Thanks

Solved: put the paint in the events of an individual control in the set (after deleting paint from set-level events), Here it has an index parameter. Then move the paint event from the individual control events to the set events. The index parameter is still there :slight_smile:

1 Like