Hi Sam.
Try this:
Set all your bound controls Enabled property to False at design time.
Then, for your BO EditingStateChanged event, insert the following code:
Private Sub YourBO_EditingStateChanged( _
ByVal e As MicroFour.StrataFrame.Business.EditingStateChangedEventArgs) _
Handles YourBO.EditingStateChanged
For Each Item As MicroFour.StrataFrame.UI.Windows.Forms.IBusinessBindable In Me.YourBO.BoundControls
If Me.YourBO.Count = 0 Then
CType(Item, System.Windows.Forms.Control).Enabled = False
Else
CType(Item, System.Windows.Forms.Control).Enabled = True
End If
Next
End Sub
I guess you open your forms with an empty BO and then let the user Add or BrowseDialog it to a record. So, when they first enter your form, the controls will be disabled and they won't be able to type anything on them unless they click Add. Or, they will go to the BD and pick a record, and hopefully it will work as you want.