How to pass an value of type enum to another enum variable?
<p>I'm getting the value of in an enum variable but while assigning it to another variable of type enum its getting 0 all the time...Here's the code i'm using , dbProperties is the object of class DBProperties which has a member of type DBType. dbProperties.DBType is always returning 0 even after assigning a value to it...Please help...!</p>

<pre><code>DBType val = (DBType)cbDataType.SelectedIndex;
cbDataType.SelectedIndex = (int)val;
dbProperties.DBType = val;
</code></pre>
