Stephen,
> at OakLeaf.MM.Main.Windows.Forms.mmButtonSave.mmButtonSave_Click(Object sender, EventArgs e)
I recommend you open mmButtonSave.cs in Visual Studio, set a breakpoint at the top of the method, and step through the code to see where the invalid cast error occurs. Check out the MM .NET Dev Guide topic "Stepping through MM .NET Code in the Debugger" for details if you have any problems.
Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com