I have a 'Contact' user control that contains a Grid, Contact Business Object and Business Binding Source. I drop the same Contact BO on my form along with my Contact User control and set the BO Translation property. I populate the Contact BO on my form and set the Usercontrol's bbs.businessOject = my forms Contact BO. THis works fine thanks to Trent.
Now that I have a list of contacts I need the ability to edit contact infomation, without using a child dialog control, so I created a child form to edit contact information. Now how do I translate the BO from my user control to my dialog form and keep the business objects in sync. I tried setting up a manual business object translation between the two but couldn't figure out how to populate the BO on the dialog form.
Thanks
Tim
Me.userControl1.childFormDialog1.ShowDialog()
When you drop it on the UserControl, you should be able to set the translations between the user control and the child form dialog.
When you drop a ChildFormDialog on a SF user control you receive an error message 'Invalid FrameWork Container, the object that the ChildFormDialog has been dropped on is not a subclass of MicroFour.StrataFrame.UI.Windows.Forms.BaseForm'.
I had the same issue you just need to forget about drag and drop and set it in code. Here is code out of my contacts user control that I use to pop up a maint form for additional editing. Anyways hope it helps
P
Private Sub ContactUserControl_ParentFormLoading() Handles Me.ParentFormLoading
TranslationItem.DestinationBusinessObject =
TranslationItem.SourceBusinessObject =