By Randy Smith - 1/17/2006
I'm not sure how to pass a parameter to a BO when it gets initialized once it gets dropped on a form short of modifying the code in the form.designer.cs. Is it possible without modifying this code? Thanks, Randy
|
By StrataFrame Team - 1/17/2006
No, all components are designed to have parameterless constructors. So, if you add a new constructor that accepts parameters to the business object, you'll either have to modify the code like you've been doing or declare the instance of the business object on your own rather than dropping it on the form. If you define it the same way as it's defined within the InitializeComponent region, then you should be able to bind to it the same way, but no promises...
|
|