C# How do I do I replace EventLogEntryType with a value from a comboBox?
<p>In the code below I want to replace EventLogEntryType.Warning with a value selected from a combo box, the combobox values are EventLogEntryType.Warning, EventLogEntryType.Information, EventLogEntryType.Error. The combo box would just show "Warning", "Information" and "Error". How can I do this?</p>

<p>Thanks</p>

<pre><code>EventLog myLog = new EventLog(); myLog.Source = "Test";             
int intEventID = int.Parse(txtEventID.Text);            
myLog.WriteEntry(txtDescription.Text, EventLogEntryType.Warning, intEventID);
</code></pre>

<p>Newbie</p>
