Is it possible to force .net application to load another .net assembly from the start via app.config manipulation or any other way?
I want to make another application to load my assembly in it's process boundaries when it starts. Please, don't ask me why :) I just try to to walkaround legacy application lack of extensibility.
There is a problem - I have to extend legacy application UI by accessing controls tree. So I wish to access Main Form instance as System.Windows.Forms.Form instance class. It's impossible from another process so I have some thoughts how to inject assembly in legacy application boundaries and use my assembly code further.
The problem I fight with: WinForms: Form.FromHandle returns null for process main form for code loaded into .net executable