﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Issues  » Inherited Browse Dialog problem</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 01:39:22 GMT</lastBuildDate><ttl>20</ttl><item><title>Inherited Browse Dialog problem</title><link>http://forum.strataframe.net/FindPost14357.aspx</link><description>Hi ,&lt;/P&gt;&lt;P&gt;My browse dialogs inherit's from my base class browse dialog that inherits from&amp;nbsp;the SF browse dialog. Serialization&amp;nbsp;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&amp;nbsp;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?&lt;/P&gt;&lt;P&gt;Thanks</description><pubDate>Wed, 13 Feb 2008 13:49:51 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item><item><title>RE: Inherited Browse Dialog problem</title><link>http://forum.strataframe.net/FindPost14370.aspx</link><description>Yeah that's about what I figured. Thanks for the info.. I am sure I will run into that again</description><pubDate>Wed, 13 Feb 2008 13:49:51 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item><item><title>RE: Inherited Browse Dialog problem</title><link>http://forum.strataframe.net/FindPost14367.aspx</link><description>[quote]I would think that because it ultimatly is a sublclass of browsedialog it should work shouldnt it?[/quote]&lt;/P&gt;&lt;P&gt;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.&amp;nbsp; Since you are two deep, the IsSubClassOf may not work since your browsedialog actually is a direct subclass of your base browsedialog.&amp;nbsp; 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.&amp;nbsp; But this can get confusing with there are multiple inheritances.</description><pubDate>Wed, 13 Feb 2008 13:41:02 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Inherited Browse Dialog problem</title><link>http://forum.strataframe.net/FindPost14362.aspx</link><description>I am not sure why IsSubclassof (BrowseDialog) returns false though. I would think that because it ultimatly is a sublclass of browsedialog it should work shouldnt it?&lt;/P&gt;&lt;P&gt;I am set up like this/&lt;/P&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Public&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Class&lt;/FONT&gt;&lt;FONT size=2&gt; AL_BrowseDialog'--My Base Class Browse Dialog&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Inherits&lt;/FONT&gt;&lt;FONT size=2&gt; MicroFour.StrataFrame.UI.Windows.Forms.BrowseDialog&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;and &lt;/FONT&gt;&lt;/P&gt;&lt;FONT size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;Namespace&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; BrowseDialogs&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Public&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Class&lt;/FONT&gt;&lt;FONT size=2&gt; CustomerBrowseDialog&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Inherits&lt;/FONT&gt;&lt;FONT size=2&gt; Base.BrowseDialogs.AL_BrowseDialog&lt;/P&gt;&lt;/FONT&gt;&lt;P&gt;&amp;nbsp;No big deal as overriding the function works but just currious&lt;/P&gt;&lt;P&gt;Paul&lt;/FONT&gt;</description><pubDate>Wed, 13 Feb 2008 13:24:31 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item><item><title>RE: Inherited Browse Dialog problem</title><link>http://forum.strataframe.net/FindPost14360.aspx</link><description>I see what is going on. Because my browse dialog is inheriting from my base browse dialog which then inherits from SF.BrowseDialog&amp;nbsp;the &lt;FONT size=2&gt;IsInheritedBrowseDialog fuction is returning false, &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;overriding that function and everythign is happy.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Paul</description><pubDate>Wed, 13 Feb 2008 13:16:27 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item><item><title>RE: Inherited Browse Dialog problem</title><link>http://forum.strataframe.net/FindPost14359.aspx</link><description>[quote]Before I start ripping into this did something change since 1.60 that may cause this?[/quote]&lt;/P&gt;&lt;P&gt;No.&amp;nbsp; This has nothing to do with the BrowseDialog class, but rather the .NET serialziation designer.&amp;nbsp; 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).&amp;nbsp; One thing that helps, though, is to set the class structure up like a form or user control with the designer file:&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/cecf83a0-fa6e-4ee5-8e51-b1a2.png"&gt;</description><pubDate>Wed, 13 Feb 2008 13:14:26 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>