﻿<?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?)  » Custom ComboBox component.</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Thu, 10 Sep 2026 21:05:39 GMT</lastBuildDate><ttl>20</ttl><item><title>Custom ComboBox component.</title><link>http://forum.strataframe.net/FindPost13834.aspx</link><description>Hi again. &lt;/P&gt;&lt;P&gt;I just need&amp;nbsp;an opinion&amp;nbsp;to help me make some decisions of a custom control I need to make. &lt;/P&gt;&lt;P&gt;I need to inherit from MicroFour.StrataFrame.UI.Windows.Forms.DevEx.ComboBoxEdit, so that I can add a second button next to the drop-down button.&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/6564f46a-56cb-4d5d-a715-bb9b.jpg"&gt;&lt;/P&gt;&lt;P&gt;The left button&amp;nbsp;drops the list (just changed the icon) and the right one is going to display a simple form with a grid to edit the contents of the list. The contents of the list is always a BO that is defined using the PopulationDataSourceSettings. &lt;/P&gt;&lt;P&gt;The thing is that in editing the contents of the list, I will actually need the BO that populates the list. Is this by anyway accessible from the ComboBoxEdit, as protected property, or method that I can use? &lt;/P&gt;&lt;P&gt;If not, what do you think would be the best approach of doing this? I was thinking of using the BusinessObjectType property of the PopulationDataSourceSettings to create another BO instance, use reflection to call the MethodToExecute property of PopulateionDataSourceSettings, then edit the BO and ask the control to repopulate for beeing aware of the changes.&amp;nbsp; Of course it would be much easier if the population BO of the ComboBoxEdit&amp;nbsp;was available. &lt;/P&gt;&lt;P&gt;Do you think this might work? Are there any other ideas? Has anybody else ever&amp;nbsp;done this?&lt;/P&gt;&lt;P&gt;Thank you for your time</description><pubDate>Thu, 31 Jan 2008 09:05:10 GMT</pubDate><dc:creator>George Nentidis</dc:creator></item><item><title>RE: Custom ComboBox component.</title><link>http://forum.strataframe.net/FindPost13856.aspx</link><description>Thanks Ben, I 'll try that.</description><pubDate>Thu, 31 Jan 2008 09:05:10 GMT</pubDate><dc:creator>George Nentidis</dc:creator></item><item><title>RE: Custom ComboBox component.</title><link>http://forum.strataframe.net/FindPost13837.aspx</link><description>The business object that is used to populate the combo is not saved off... it loses scope and is cleaned up.&amp;nbsp; So, your best bet is to do exactly like you mentioned... create a new instance of the BO and populate it.&amp;nbsp; FYI, you might want to look at the source within the ListControl.vb file of the MicroFour StrataFrame UI assembly to get an idea on how we did it... maybe event copy over the code...</description><pubDate>Wed, 30 Jan 2008 09:03:58 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>