Originally posted by SeanGrebey
How is that different from setting it through the property Window?
It results the same . But this should solve the problem of showing the icon for the dynamically created form (the second form) .