First you have create an Even by using WithEvents Keyword on any of the control.
You can fire the Event using RaiseEvent function.