My browse dialogs inherit's from my base class browse dialog that inherits from the SF browse dialog. Serialization doesn't seem to work anymore. Now if i make any change to my browse dialog via the property every single stitch of code the was serialized in the init component is "smoked"... and obviusly the property i meant to change is not persisted either. Before I start ripping into this did something change since 1.60 that may cause this?
Thanks
No. This has nothing to do with the BrowseDialog class, but rather the .NET serialziation designer. In fact, we take this same approach for all of our browse dialogs in our medical app (and I even created a new one this morning). One thing that helps, though, is to set the class structure up like a form or user control with the designer file:
overriding that function and everythign is happy.
Paul
I am set up like this/
and
Namespace
No big deal as overriding the function works but just currious
No....in fact, I spent a lot of time yesterday trying to get a generic type to work with the ITypeDiscovery interface and the IsSubClassOf. Since you are two deep, the IsSubClassOf may not work since your browsedialog actually is a direct subclass of your base browsedialog. You can make it work by "jacking" with some of the options and you may even play with the Type.ReflectionOnlyGetType to see if it returns differently. But this can get confusing with there are multiple inheritances.