﻿<?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?)  » Populating ToolStripCombobox with BO...</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 17:21:32 GMT</lastBuildDate><ttl>20</ttl><item><title>Populating ToolStripCombobox with BO...</title><link>http://forum.strataframe.net/FindPost1927.aspx</link><description>How do I populate a toolstripcombobox with a BO?&lt;br&gt;
&lt;br&gt;
I also noticed that the only toolstrip you have is the maintenance form one.  Is there any way to get your combo box on the toolstrip? Do you have your own version of the toolstrip?&lt;br&gt;
&lt;br&gt;
Mike</description><pubDate>Mon, 24 Jul 2006 15:36:40 GMT</pubDate><dc:creator>StarkMike</dc:creator></item><item><title>RE: Populating ToolStripCombobox with BO...</title><link>http://forum.strataframe.net/FindPost1928.aspx</link><description>Toolstrips basically have a wrapper for combo boxes.&amp;nbsp; In fact, they inherit from a System.Windows.Forms.Combobox class.&amp;nbsp; To populate a toolstrip combo using data you will have to manually set the data source property as well as the ValueMember and DisplayMemeber.&amp;nbsp; To access the wrapped combo box it will look something like this.&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;FONT color=#1111ff&gt; Me.ToolStripComboBox1.ComboBox.DataSource = MyBO.CurrentDataTable&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Me.ToolStripComboBox1.ComboBox.ValueMember = "ValueFieldName"&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Me.ToolStripComboBox1.ComboBox.DisplayMember = "DisplayFieldName"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Use&amp;nbsp;this code whenever you need to populate the toolstrip combo box.</description><pubDate>Mon, 24 Jul 2006 15:36:40 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>