You can use WithEvents
here:
Public WithEvents image As PictureBox
And then only
... Handles image.MouseMove
After that, look up AddHandler
, too.
AddHandler
can do at runtime what the Handles
directive does at design time, i.e. it enables you to assign a method to the events of multiple / runtime-created objects.