﻿<?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?)  » Prevent User from opening combobox....</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 08 Sep 2026 23:55:11 GMT</lastBuildDate><ttl>20</ttl><item><title>Prevent User from opening combobox....</title><link>http://forum.strataframe.net/FindPost8552.aspx</link><description>How would I prevent the user from opening a combo box? Lets say that I want to check a condition first and if the condition is true allow them to open it... if its false prevent them from opening it.&lt;br&gt;
&lt;br&gt;
Thanks</description><pubDate>Fri, 27 Apr 2007 13:36:22 GMT</pubDate><dc:creator>StarkMike</dc:creator></item><item><title>RE: Prevent User from opening combobox....</title><link>http://forum.strataframe.net/FindPost8563.aspx</link><description>Thats what I ended up doing :hehe: programmatically setting the Enabled property.&lt;/P&gt;&lt;P&gt;I was just looking for an event so that I could inform the user why I was preventing them from opening the combo. :)</description><pubDate>Fri, 27 Apr 2007 13:36:22 GMT</pubDate><dc:creator>StarkMike</dc:creator></item><item><title>RE: Prevent User from opening combobox....</title><link>http://forum.strataframe.net/FindPost8557.aspx</link><description>You could always set the ComboBox.Enabled = false ;)&lt;/P&gt;&lt;P&gt;But something tells me that's not what you want to do.&amp;nbsp; There's not a way to prevent it from happening, but when it happens, you can immidiately hide it by handling the DropDown event of the combo.&amp;nbsp; If the condition is false, then immidiately set the DroppedDown property to False.&amp;nbsp; There isn't a Close() method or I would recommend it, but the DroppedDown seems to do the same thing.</description><pubDate>Fri, 27 Apr 2007 10:40:00 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>