It works nice drop it and a BO on a form set a few properties and I'm done. Because some forms don't have as much real estate as others I added the ability to be able to hide fields on the user control which works out nice, however now I wanted to allow the user to pop up a maintenence form that has all the extra info that may not be shown in that instance of the usercontrol.
Problem is when I try to use the child form dialog control on the usercontrol it squacks about not being on a something inherited from SF base form, (the usercontrol is ultimatley inherited from MicroFour.StrataFrame.UI.Windows.Forms.UserControl with 1 layer of inheritance)
I ignore that messagebox and configure the childcontrol anyway's but get object not set to an instance when I call the showdialog method.
MicroFour.StrataFrame.UI.Windows.Forms.ChildFormDialog.GetBusinessObject(BaseForm ParentControl, String BusinessObjectName)
at MicroFour.StrataFrame.UI.Windows.Forms.ChildFormDialog.CreateForm(Object[] Arguments)
at MicroFour.StrataFrame.UI.Windows.Forms.ChildFormDialog.ShowDialog(Object[] Arguments)
at MicroFour.StrataFrame.UI.Windows.Forms.ChildFormDialog.ShowDialog()
Evidently it needs the base form so I think will add a childformdialog property to the user control and have to add and configure a childformdialog control on the main form rather than the user control. or raise an event in the usercontrol when the button is clicked that is handled in the main form. anyways that should work but if not you will be the first to know
I can make what I need to make work-work but it kinda sucks as my goal was to have the childdialog configured in the UserControl once instead of having to configure the ChildDialog in every parent form the user control is in.
Is there any way you can think of around this?
Thanks
Paul
Thats exactly what I needed. I am still having a problem with the translation item not finding the bus obj but I'll look at it in the morning, You guys have me spoiled with all the Drag and Drop stuff I forget that you can actually use them programtically.
Anyways Thanks again
Incorrect
ChildDialogTranslationItem.SourceBusinessObject = "WhateverUserControl.BusinesObject"
Correct
ChildDialogTranslationItem.SourceBusinessObject =
P