by Mike.Sheen » Wed Oct 15, 2014 9:41 am
Hi Danny,
Attached is a modified version of your plugin which works.
The problem was your use of the shared ActiveForm property. When a form is docked the ActiveForm is the MDI parent form. When undocked, it would always be the sales order form with the focus. You seem to have used ActiveForm simply to get access to the sales order business logic. The Processed event you were hooking into does receive a sender argument - which is the sales order business logic. So in this case you don't need the form - you actually need the business logic. The modifications I made to your plugin do exactly that.
Mike
Mike Sheen
Chief Software Engineer
Jiwa Financials
If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution