﻿<?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?)  » BrowseDialog subclass question</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 06:06:00 GMT</lastBuildDate><ttl>20</ttl><item><title>BrowseDialog subclass question</title><link>http://forum.strataframe.net/FindPost23400.aspx</link><description>Hi Trent,&lt;br&gt;
I have a BrowseDialog (BD) class which I need to use in 2 forms showing different columns in the BrowseResultsLayout.  All the inheritance is working find, I am able to drop an instance of my BD on each form and it works just fine, problem is that in a 2nd form I just need to show 3 columns instead of showing the 5 columns created in the class.  &lt;br&gt;
&lt;br&gt;
For the search fields there is no problem because I can set these up by code using the BD.SearchFields property and works find, but I have not find a way to remove columns from the instance in my form, is there a trick to do that? or would I be required to create the BD on each forms instead?</description><pubDate>Sun, 07 Jun 2009 22:10:05 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: BrowseDialog subclass question</title><link>http://forum.strataframe.net/FindPost23402.aspx</link><description>Thanks, I will check the designer file and test for the best event to remove the column not needed in this form.</description><pubDate>Sun, 07 Jun 2009 22:10:05 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: BrowseDialog subclass question</title><link>http://forum.strataframe.net/FindPost23401.aspx</link><description>If the browses are the same with the exception of the results layout, then you will definitely want to have a single class that is inherited from the BD and then just programmatically modify the results.  The results is a collection so you can just modify the collection in code.  if you open the designer file of the BD class you created, you will see the BrowseResultsLayout property is just a collection and you can see what the designer has done.  So it would just be a matter of removing these in an even prior to the BD being shown.</description><pubDate>Sun, 07 Jun 2009 21:54:44 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>