StrataFrame Forum

Urgent : ParentForm returns null

http://forum.strataframe.net/Topic32816.aspx

By hector - 1/7/2015

Hi folks,

I have just upgrade to SF v1.7.7.1 ( i was at SF version 1.7.3.5 before)

I have also upgrade windows 2012 R2 and VS2013

When i test programs, i have noticed that some (not all) SF User-control  returns null.

I have looked to source code of SF v1.7.7.1 and i have discover ParentTarget property added to this version (see below)

And also a property added named  initObjectsToContainerNotForm which controls what returns.

Why this initObjectsToContainerNotForm  added here.What was the purpose ?

I am asking this just for to be sure that wheather it is related my problem (ParentForm returns null) ?

I mean did u get some request that ParentForm return null and u added this in new version?

This is so urgent for me.

I will happy if u can help me ASAP.

Thanks

  Private ReadOnly Property ParentTarget As IContainerControl
            Get
                If Me._initObjectsToContainerNotForm Then
                    Return Me.ParentContainer
                Else
                    Return TryCast(Me.ParentForm, IContainerControl)
                End If
            End Get
        End Property