Combobox population problem
<p>So I have a combobox -  the designer code:</p>

<pre><code>this.cmbStatusBox.Items.AddRange(new object[] {
    "Ordered",
    "Cooking",
    "In-transit",
    "Delivered"});
</code></pre>

<p>The formload code:</p>

<pre><code>if (mainForm.boolEdit == true)
    {
        this.cmbStatusBox.Items.AddRange(new object[] {
        "Cooking",
        "In-transit",
        "Delivered"});
    }
    else
    {
        this.cmbStatusBox.Items.AddRange(new object[] {
        "Ordered"});
    }
</code></pre>

<p>As you can see, I am trying to make the combobox have different values.
As things stand, i get both whats in the designer and in formload in the comboboxes.</p>

<p>How can i stop this?</p>

<p>I also have an edit function, so when i edit a record, i want the combo box to be populated by what is already saved. </p>

<p>Just a random question, can you stop the user entering a value that isn't in the combo box?</p>

<p>Thankyou</p>
