StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Providing a paramter to the constuctor of a...Expand / Collapse
Author
Message
Posted 01/17/2006 1:20:33 PM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: Forum Members
Last Login: 04/13/2007 5:21:30 PM
Posts: 18, Visits: 193
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

Post #438
Posted 01/17/2006 4:15:31 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 11:24:42 AM
Posts: 2,686, Visits: 1,889
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...


www.bungie.net
Post #439
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 11:29am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.109. 8 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.