$Formadd_Load($whatever) not working after creating package

Created multiple forms and start those forms from other forms. When a form is started I execute an action with $form,add_Load($whatever). The action is added to the designer file.
When testing in Visual Studio is works fine but after creating a package the actions are not executed.

Is there another option to execute either a function when a form starts/loads?