Can we attach an event handler dynamically to a class without creating an instance of an object?
My Scenario
From Main form [Level 0] I am calling sub forms [Level 1], to these sub forms I am able to add dynamic events from the main form. But from the Sub Forms I am again calling forms [level 2]. I cannot add dynamic events from this level [Level 2]. I don't know when a form get call from Level 1, it must be an button click event or any other events.
The below code doesn't work because it requires a instance here frm is an instance
Dim frmLoad = New FormLoadEventHandler(AddressOf On_Load)
t.GetEvent("Load").AddEventHandler(frm, frmLoad)
I am loading individual assemblies into a single platform so each individual assembly has so many sub forms, from my main module i can access the initial form through the reflection. My idea is to make the font same in all forms calling from my platform