Form Initialize

I have a window form and I want to run some script when the form becomes active. It’s same with the form load or form initialize event in .Net or vb6. Is there a way to achieve it? Can someone help me? :scratch: :scratch: :scratch:

Similar topic here. Should Apply to FPMI as well.