>I have an event handler on a form that handles the validating event for a textbox on that form. From within that event handler method I need to access the entity object property that the textbox is bound to. Can somebody please help me with some code that would allow me to do that.
You can get a reference to the business object specified in the BindingSource property of the control, then access that business object’s Entity object. For example:
mmBusinessObject BizObj = (mmBusinessObject)mmAppDesktop.FormMgr.GetControlBizObj(this);
For details, check out the MM .NET Dev Guide “Getting References to Registered Business Objects”.
Best 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