StrataFrame Forum

How do I create a user control to use some label and textbox on multiple forms

http://forum.strataframe.net/Topic30831.aspx

By Fabian R Silva, - - 2/1/2012

I have to use 3 label and 3 textboxes on all my forms (audit / show user and date in a CRUD of Add/Edit/Logical delete)

I see that if I put some textboxes on a usercontrol with public access I can set all of the properties on the form
the problem is that when I drop the SF textbox controls on a user control a message say that it not implement a IBusinessbindlable interfase

what is the best approach to have a user control that I can drop on all my forms, this usercontrol have some textboxes and I have to set only the form businessobjects that those textboxes need?

I hope that my question be understand (sorry for me bad english).

thanks in advance.
By Ivan George Borges - 2/1/2012

Hi Fabian.

Here are some links on the subject to get you started:

http://forum.strataframe.net/FindPost7235.aspx

http://forum.strataframe.net/FindPost5632.aspx

http://forum.strataframe.net/FindPost8964.aspx

Hope it helps.
By Fabian R Silva, - - 2/2/2012

thanks for reply Ivan, yesterday I found the post http://forum.strataframe.net/Topic17845.aspx and using the example I ended with a working User Control, basically the idea was to put a property "BusinessObject" on the user control that assigns to all the strataframe controls on this user control the selected BO and all worked ok Smile

thanks.
By Ivan George Borges - 2/2/2012

Glad you got it going, Fabian. Cool