TranslateBusinessObjects casts SourceContainer to BaseForm


Author
Message
Andria Jensen
Andria Jensen
Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)
Group: Forum Members
Posts: 336, Visits: 497
I am trying to use this routine to translate BO's from a UserControl to a dialog form.  I pass the UserControl as the SourceContainer, but I get an error because in this routine you are casting the SourceContainer to a BaseForm.  Shouldn't you check to see if this is a form before doing this line?  Everything else works with any kind of ContainerControl except this line which isn't needed in that case right?

CType(SourceContainer, BaseForm).RemoveObjectFromInitOnFormLoad(DestinationBusinessObject)


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