﻿<?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?)  » Combobox reverts to look and feel of a textbox</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 10:38:47 GMT</lastBuildDate><ttl>20</ttl><item><title>Combobox reverts to look and feel of a textbox</title><link>http://forum.strataframe.net/FindPost23740.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;I have a couple of manually populated comboboxes that most of the time behave normally. Sometimes, when the form enters Edit mode the dropdown element on the controls disappears and the controls effectively look like text boxes with no dropdown list.&lt;/P&gt;&lt;P&gt;Most of the time&amp;nbsp;the controls&amp;nbsp;work and there doesn't appear to be a reason or pattern to when&amp;nbsp;they&amp;nbsp;fail. The combobox always looks okay when the business object is idle - it just happens when the business object enters edit mode.&lt;/P&gt;&lt;P&gt;Has anyone seen this before?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aaron</description><pubDate>Wed, 08 Jul 2009 09:28:03 GMT</pubDate><dc:creator>Aaron Young</dc:creator></item><item><title>RE: Combobox reverts to look and feel of a textbox</title><link>http://forum.strataframe.net/FindPost23782.aspx</link><description>I will try and create a test project to recreate it.&lt;br&gt;
&lt;br&gt;
The strange thing is the combobox is correct when disabled and incorrect when enabled. It looks like a combobox when disabled and a text box when enabled.&lt;br&gt;
I will build in some code to automatically check the dropdownstyle in the meantime.&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
&lt;br&gt;
Aaron</description><pubDate>Wed, 08 Jul 2009 09:28:03 GMT</pubDate><dc:creator>Aaron Young</dc:creator></item><item><title>RE: Combobox reverts to look and feel of a textbox</title><link>http://forum.strataframe.net/FindPost23772.aspx</link><description>Actually the SF combo box has done this since nearly the beginning of time because the appearance of the combo is different when disabled (as it doesn't have a read-only mode) and there were complaints initially of the appearance not matching.  However, the combo does look more like a textbox when disabled in different modes, so we actually change this.  &lt;br&gt;
&lt;br&gt;
However, with that being said, this is the first I have heard of it not changing back correctly (in a really long time).   There was an issue a really long time ago when this change was made that under certain conditions you would get the behavior you are explaining.  Can you reproduce this in a simple sample or is it environment specific.&lt;br&gt;
&lt;br&gt;
If you can produce a sample reproducing this then we can make sure that it is resolved before we release the 1.7 build.</description><pubDate>Wed, 08 Jul 2009 07:30:03 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Combobox reverts to look and feel of a textbox</title><link>http://forum.strataframe.net/FindPost23770.aspx</link><description>Hi,&lt;br&gt;
&lt;br&gt;
I can now make this happen 100% of the time and the control is changing the ComboBoxStyle when entering edit mode.&lt;br&gt;
&lt;br&gt;
It appears to only affect combos that are manually queried as other comboboxes on the same form that are populated on form load are okay. When I add a new record, then save, then edit, the manually queried comboboxes change from DropDownStyle = ComboBoxStyle.DropDown to DropDownStyle = ComboBoxStyle.Simple.&lt;br&gt;
&lt;br&gt;
I have checked and the combobox lists are full at the point the BO enters edit mode. When the BO editing state is idle the comboboxes are set as ComboBoxStyle.DropDown. When the BO enters edit mode they change to ComboBoxStyle.Simple and then revert back to ComboBoxStyle.DropDown when the BO is idle again.&lt;br&gt;
&lt;br&gt;
It looks like the combobox is deciding to change the ComboBoxStyle only while editing and I can't see a reason for it.&lt;br&gt;
&lt;br&gt;
Aaron&lt;br&gt;
&lt;br&gt;</description><pubDate>Wed, 08 Jul 2009 07:17:06 GMT</pubDate><dc:creator>Aaron Young</dc:creator></item></channel></rss>