Winform Designer question


Author
Message
Michael Reese
Michael Reese
Advanced StrataFrame User (533 reputation)Advanced StrataFrame User (533 reputation)Advanced StrataFrame User (533 reputation)Advanced StrataFrame User (533 reputation)Advanced StrataFrame User (533 reputation)Advanced StrataFrame User (533 reputation)Advanced StrataFrame User (533 reputation)Advanced StrataFrame User (533 reputation)Advanced StrataFrame User (533 reputation)
Group: StrataFrame Users
Posts: 235, Visits: 1.6K
This might be a dumb question but I am using the Ultraschedule component which when placed on a form along with a BBS and BO will build before the BO,BBS in the designer. Of course I keep getting an error because the component will attempt to call the BO columns before the BO has had a chance to be declared. I can mannully fix this but it reverts back once I move something on the form.

How do I make the following code display above the schedule component??

Thanks

'BBSScheduleCenter

Me.BBSScheduleCenter.BusinessObject = Me.BOScheduleCenter

Me.BBSScheduleCenter.ParentForm = Me

'

'BOScheduleCenter

'

Me.BOScheduleCenter.ChildAutoFilterOption = MicroFour.StrataFrame.Business.AutoChildFilterOptions.MatchCurrentRow

Me.BOScheduleCenter.ParentBusinessObject = Me.BoSite

Me.BOScheduleCenter.ParentContainer = Me

Me.BOScheduleCenter.SynchronizingObject = Me

'BBSChangeControl


Reply
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
You can't control the order of how the form designer serializes the items in the partial class.  This is why we created the IInitOnFormLoad interface.  You can implement this interface and then control the loading order through the ParentFormLoading event.  You can see an example of this and how to implement it on the BusinessLayer or ComboBox in the source code.  There are a number of other controls that implement this as well, but the combo would probably be an easy one to look at to get an idea of how to implement the interface.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search