﻿<?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?)  » BrowseDialog - true/false combo</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 08:52:46 GMT</lastBuildDate><ttl>20</ttl><item><title>BrowseDialog - true/false combo</title><link>http://forum.strataframe.net/FindPost17759.aspx</link><description>I have a true/false bit field in SQL and I would like to display this to a user in a browse dialog as a combobox containing true/false selections. I have played around with the Combo - Enum option in the SearchFields dialog but I can't seem to get it to work for System.Boolean.&lt;/P&gt;&lt;P&gt;Assuming that this is possible, can anyone point me in the right direction please?&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Aaron&lt;/P&gt;&lt;P&gt;P.S. I was trying to use the Combo - Enum option as I don't think I can use a CheckBox?</description><pubDate>Thu, 10 Jul 2008 15:03:19 GMT</pubDate><dc:creator>Aaron Young</dc:creator></item><item><title>RE: BrowseDialog - true/false combo</title><link>http://forum.strataframe.net/FindPost17775.aspx</link><description>[quote] particularly like the subtle Time Action on the date. That tells me someone has been there and done that before me[/quote]&lt;P&gt;Thanks....yeah, we hit that wall a while back.&amp;nbsp; :)&amp;nbsp; So we knocked it down :D</description><pubDate>Thu, 10 Jul 2008 15:03:19 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: BrowseDialog - true/false combo</title><link>http://forum.strataframe.net/FindPost17773.aspx</link><description>Works great - thanks!&lt;/P&gt;&lt;P&gt;By the way, the BrowseDialog is a very powerful control -&amp;nbsp;I particularly like the subtle Time Action on the date. That tells me someone has been there and done that before me! :)</description><pubDate>Thu, 10 Jul 2008 14:45:28 GMT</pubDate><dc:creator>Aaron Young</dc:creator></item><item><title>RE: BrowseDialog - true/false combo</title><link>http://forum.strataframe.net/FindPost17766.aspx</link><description>Actually you are going down the right road and getting close.&amp;nbsp; You will want to use the Enum options and create an enum with values like this:&lt;/P&gt;&lt;P&gt;[codesnippet]Public Enum MyBooleanEnum as Integer&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; No = 0&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Yes = 1&lt;BR&gt;End Enum[/codesnippet]&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;[codesnippet]Public Enum MyBooleanEnum as Integer&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;False = 0&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;True = 1&lt;BR&gt;End Enum[/codesnippet]&lt;/P&gt;&lt;P&gt;Once you have the enum, then you will assign this when setting up the SearchField.&amp;nbsp; Then you will want to assign a value of -1 as the "Not Used" value for the TopMost Item (Combo - General page) which is should be by default anyway.&amp;nbsp; This should work just fine as I did it the other day.&amp;nbsp;</description><pubDate>Thu, 10 Jul 2008 11:15:18 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>