I have a dynamically creasted grid of picture box controls, and I want to add custom events handlers to them and Im stuck.

Event 1: User Enters with mouse

Event 2: User Leaves with mouse

Event 3: User Clicks with mouse

btw, they're created when the form they are on loads in a methos i wrote (I didn't use IDE to design them), because it will be a pain to do it one by one (theres 81 in total...yes its for sudoku)

Never mind, I figured it out

For those who might have come here looking for the answer, it follows this syntax:

<control>.<event> += new EventHandler(<name of your custom event>)