StrataFrame Forum

ChildFormDialog unable to lookup my form

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

By Chan - 8/26/2007

Hi,

I am facing problem that, ChildFormDialog unable to lookup my form class. I tried to change it namespace, class name, move it to another project, back to original project, still not help. It work if I use new statement.



Also, I found that, if I put my class in another project (which is BO library project, but used for UI) when debugging GetTypeFromReferencedAssemblies(_ChildForm), it even can't see my assembly.



ANy ideas?



Thank you
By StrataFrame Team - 8/27/2007

You can set the ChildForm property to the assembly qualified name of the type.  We generally only use the name of the type like this:

Namespace.FormTypeName

but if you change it to this:

Namespace.FormTypeName, AssemblyName, Version=X.0.0.0, Culture=neutral, PublicKeyToken=null

which is the assembly qualified name, then it will be able to find it.  You can get the assembly qualified name by typing this in the watch window while debugging:

typeof(YourFormType).AssemblyQualifiedName

By Chan - 8/27/2007

Hi,

It works using AssemblyQualifiedName.



May I know your plan to solve it in next SF version?



Thank you
By StrataFrame Team - 8/28/2007

When we have issues like this in the next sf version, we will change the designer's CodeDom so that it will use typeof(Namespace.Type) which compiles the type reference into the executable and the string typename will not be used.