<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
	>
<channel>
	<title>Comments on: Automatically Fill a ComboBox with an Enum</title>
	<atom:link href="http://www.jmsoftware.co.uk/blog/automatically-fill-a-combobox-with-an-enum/feed" rel="self" type="application/rss+xml" />
	<link>http://www.jmsoftware.co.uk/blog/automatically-fill-a-combobox-with-an-enum</link>
	<description>Software Development</description>
	<lastBuildDate>Thu, 03 Mar 2011 02:47:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Sandun</title>
		<link>http://www.jmsoftware.co.uk/blog/automatically-fill-a-combobox-with-an-enum/comment-page-1#comment-1268</link>
		<dc:creator>Sandun</dc:creator>
		<pubDate>Sat, 21 Aug 2010 20:06:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.jmsoftware.co.uk/?p=161#comment-1268</guid>
		<description>Hey ,
U can get the Enum value directly as follows 
public enum MyEnumerator { 
Oranges=0, Apples=1, Hedgehogs=2, Laptops=3, Budgies=4, Other=5 }

int myVariable =(int) (MyEnumerator)this.comboBox1.SelectedValue;
lblTest.Text=&quot;&quot;+myVariable;

cheers :)</description>
		<content:encoded><![CDATA[<p>Hey ,<br />
U can get the Enum value directly as follows<br />
public enum MyEnumerator {<br />
Oranges=0, Apples=1, Hedgehogs=2, Laptops=3, Budgies=4, Other=5 }</p>
<p>int myVariable =(int) (MyEnumerator)this.comboBox1.SelectedValue;<br />
lblTest.Text=&#8221;"+myVariable;</p>
<p>cheers <img src='http://www.jmsoftware.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

