﻿<?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?)  » ComboboxEdit 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 05:13:38 GMT</lastBuildDate><ttl>20</ttl><item><title>ComboboxEdit question...</title><link>http://forum.strataframe.net/FindPost16539.aspx</link><description>Lets say I have a ComboBoxEdit that based on other factors may only have 1 item in it. How can I tell how many items are in the ComboBoxEdit and if there is only one how can I select that one Item in code? Keep in mind that the 1 item could be different depending on circumstances so its not as simple as knowing the value to set the SelectedValue to...&lt;br&gt;
&lt;br&gt;
Thanks</description><pubDate>Thu, 22 May 2008 13:34:30 GMT</pubDate><dc:creator>StarkMike</dc:creator></item><item><title>RE: ComboboxEdit question...</title><link>http://forum.strataframe.net/FindPost16544.aspx</link><description>That IS what i wanted! Thanks!!</description><pubDate>Thu, 22 May 2008 13:34:30 GMT</pubDate><dc:creator>StarkMike</dc:creator></item><item><title>RE: ComboboxEdit question...</title><link>http://forum.strataframe.net/FindPost16542.aspx</link><description>I think that Bill pretty much nailed it....let us know if that isn't what you were looking for.</description><pubDate>Thu, 22 May 2008 13:00:37 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: ComboboxEdit question...</title><link>http://forum.strataframe.net/FindPost16540.aspx</link><description>Check the count with:&lt;/P&gt;&lt;FONT size=2&gt;&lt;P&gt;comboBoxEdit1.Items.Count&lt;/P&gt;&lt;P&gt;Then, set the selected index, if there is only one item:&lt;/P&gt;&lt;P&gt;comboBoxEdit1.SelectedIndex = 0&lt;/P&gt;&lt;P&gt;Not sure if that is what you are looking for...&lt;/P&gt;&lt;P&gt;Bill&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Thu, 22 May 2008 11:47:04 GMT</pubDate><dc:creator>Bill Cunnien</dc:creator></item></channel></rss>