I am trying to do 1 of 3 options when selecting from 2 different listboxes with the same measurement words.

The user enters a number into a textbox, then selects one of 3 units in the FromList listbox (the units are Inches, Feet, and Yards), then selects one of 3 units in the ToList listbox (the units in this are also Inches, Feet, and Yards).

When the calculate button is clicked it will either convert the measurement inches to inches (Do no math and just spit out what they entered to the label) or inches to feet or inches to yards if the FromList has Inches selected, and display the output to a label. It would also do feet to inches, feet to feet(do no math), and feet to yards. Lastly, it would do yards to inches, yards to feet, and yards to yards (do no math).

Both listboxes have SelectionMode set to One so user can only pick 1 item from each listbox. I can set the first listbox to a value with SelectedItem, but the 9 errors in the code it is highlighting is if I try to set it if an item in the 2nd listbox is selected. Here's what I've tried so far:

```
    public frmConverter()
    {
        InitializeComponent();
    }
    private void btnExit_Click(object sender, EventArgs e)
    {
        this.Close();
    }

    private void btnClear_Click(object sender, EventArgs e)
    {
        txtEntered.Text = "";
        lblOutput.Text = "";
    }

    private void btnCalc_Click(object sender, EventArgs e)
    {
        string Fromlist;
        string ToList;
        double Entered, Output;

        Entered = Convert.ToDouble(txtEntered.Text);

        if (FromList == "Inches" && ToList == "Inches")
        {
            lblOutput.Text = txtEntered.Text + " Inches";
        }
        else if (FromList == "Inches" && ToList =="Feet")
        {
            Output = Entered / 12;
            lblOutput.Text = Output.ToString("N2") + (" Feet");
        }
        else if (FromList == "Inches" && ToList == "Yards")
        {
            Output = Entered / 36;
            lblOutput.Text = Output.ToString("N2") + (" Yards");
        }
        else if (FromList == "Feet" && ToList == "Inches")
        {
            Output = Entered * 12;
            lblOutput.Text = Output.ToString("N2") + (" Inches");
        }
        else if (FromList == "Feet" && ToList == "Feet")
        {
            lblOutput.Text = txtEntered.Text + " Feet";
        }
        else if (FromList == "Feet" && ToList == "Yards")
        {
            Output = Entered / 3;
            lblOutput.Text = Output.ToString("N2") + (" Yards");
        }
        else if (FromList == "Yards" && ToList == "Inches")
        {
            Output = Entered * 36;
            lblOutput.Text = Output.ToString("N2") + (" Inches");
        }
        else if (FromList == "Yards" && ToList == "Feet")
        {
            Output = Entered * 12;
            lblOutput.Text = Output.ToString("N2") + (" Feet");
        }
        else if (FromList == "Yards" && ToList == "Yards")
        {
            lblOutput.Text = txtEntered + " Yards";
        }
    }
} 

```