﻿<?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 » WinForms (How do I?)  » Subclassed BrowseDialogs and Instance Properties...</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sat, 19 Sep 2026 14:37:05 GMT</lastBuildDate><ttl>20</ttl><item><title>Subclassed BrowseDialogs and Instance Properties...</title><link>http://forum.strataframe.net/FindPost11249.aspx</link><description>Recently&amp;nbsp;I've noticed that our subclassed browse dialogs aren't behaving the same as regular BrowseDialogs.&amp;nbsp; Mainly the property changes on an Instance of a subclassed BrowseDialog don't seem to be getting saved. Properties like the BrowseResultsImageList.&amp;nbsp; It isn't set in the BD class, but dropped on the form the BD is going on, and the instance of the BD gets it ImageList set.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried doing the same thing on the CRM Application sample, setting the ImageList on the instance of the CustomersBrowseDialog1 on the CustomerMaintenance Form to the imgBrowse, and after a rebuild, it went back to empty.&lt;/P&gt;&lt;P&gt;Robin Giltner</description><pubDate>Mon, 03 Sep 2007 23:35:11 GMT</pubDate><dc:creator>Robin J Giltner</dc:creator></item><item><title>RE: Subclassed BrowseDialogs and Instance Properties...</title><link>http://forum.strataframe.net/FindPost11299.aspx</link><description>No, I'm not aware of a way have a form that is "partially modal."&amp;nbsp; In my experience, it's either all or nothing.&amp;nbsp; However, you might be able to change the source so that it doesn't show modal, but just shows itself.&amp;nbsp; Then, you could store a reference to the BrowseDialogWindow off in the form and when you try to activate the form (Activated event), you could see if there is a BrowseDialogWindow open and activate it instead.&amp;nbsp; I'm not sure how that would work, because you'd also have to add the logic into the BrowseDialogWindow to close itself if it's not modal instead of just setting the DialogResult.</description><pubDate>Mon, 03 Sep 2007 23:35:11 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Subclassed BrowseDialogs and Instance Properties...</title><link>http://forum.strataframe.net/FindPost11275.aspx</link><description>Ahh, gotcha.&amp;nbsp; That actually answers a lot of other questions I had about BrowseDialogs. But I do have one other quick question, we are using a Main form and several mdi child forms. These child forms are where all of our browse dialogs are.&amp;nbsp; Is there anyway that the main for could still be accessible when a child form's BrowseDialog is open?&amp;nbsp; We have a request that some of the tools be available for unit conversion when doing a browse. Those are on the main form and I can't seem to figure out a way to only have the BrowseDialog lock it's parent form, not all open forms.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Robin Giltner</description><pubDate>Fri, 31 Aug 2007 10:44:16 GMT</pubDate><dc:creator>Robin J Giltner</dc:creator></item><item><title>RE: Subclassed BrowseDialogs and Instance Properties...</title><link>http://forum.strataframe.net/FindPost11266.aspx</link><description>Ah, here's a good explanation of why the property isn't being serialized.&amp;nbsp; It's by design, so you'll probably need to set any instance specific properties by hand in your form startup code.&lt;/P&gt;&lt;P&gt;&lt;A href="http://forum.strataframe.net/FindPost11004.aspx"&gt;http://forum.strataframe.net/FindPost11004.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Or, you could override the IsInheritedBrowseDialog() method and test on the System.Environment.StackTrace property ;)&lt;/P&gt;&lt;P&gt;So, say, if the stack trace contains "ShouldSerializeBrowseResultsImageList" then you would return False, because you want the property to be serialized, otherwise, just return the base value.</description><pubDate>Fri, 31 Aug 2007 09:23:14 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>