Hello Alan,
If the various BizObjs share similar behavior, you can have them implement an interface containing the common methods and then cast the result of GetBizObj():
IYourInterface yourBORef = (IYourInterface)YourForm.GetBizObj("YourBizObj");
yourBORef.YourInterfaceMethod()
Hope that helps,
---J
>Hello All,
>
>I have created a custom search control that I have placed on several forms. One of the properties of the control is a reference to the primary business object on the form. I have a RegisterBizobj method on my control that accepts a paramter of type ABusinessObject. But what I'm really passing is a subclass of ABusinessObject (a different class on each form). If I cast the parameter as ABusinessObject, I can't access any of the methods that are on my subclasses. Is there any way to get around this strict typing problem?
>
>Thanks
>Alan Jefferson