**things that makes you go hmmmm....**
Well, i got confused.

I guess it was my fault, i have tried to simplify my question but i only got it more confused.

In general i'm trying to do a length convertor from metric to inch and

vice versa. In combobox2 i have the list of lengths (cm,mm,inch,yard,etc..)

from it i choose what kind of length i want to convert from.

```
[SIZE=2][COLOR=#0000ff]Private[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]Sub[/COLOR][/SIZE][SIZE=2] Length_Button_Click([/SIZE][SIZE=2][COLOR=#0000ff]ByVal[/COLOR][/SIZE][SIZE=2] sender [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2] System.Object, [/SIZE][SIZE=2][COLOR=#0000ff]ByVal[/COLOR][/SIZE][SIZE=2] e [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2] System.EventArgs) [/SIZE]
[SIZE=2][COLOR=#0000ff]Handles[/COLOR][/SIZE][SIZE=2] LengthBt.Click[/SIZE]
[SIZE=2]ComboBox2.Text = ([/SIZE][SIZE=2][COLOR=#800000]"choose"[/COLOR][/SIZE][SIZE=2])[/SIZE]
[SIZE=2]ComboBox2.Items.Clear()[/SIZE]
[SIZE=2]ComboBox2.Items.Add([/SIZE][SIZE=2][COLOR=#800000]"mm"[/COLOR][/SIZE][SIZE=2])[/SIZE]
[SIZE=2]ComboBox2.Items.Add([/SIZE][SIZE=2][COLOR=#800000]"cm"[/COLOR][/SIZE][SIZE=2])[/SIZE]
[SIZE=2]ComboBox2.Items.Add([/SIZE][SIZE=2][COLOR=#800000]"m"[/COLOR][/SIZE][SIZE=2])[/SIZE]
[SIZE=2]ComboBox2.Items.Add([/SIZE][SIZE=2][COLOR=#800000]"km"[/COLOR][/SIZE][SIZE=2])[/SIZE]
[SIZE=2]ComboBox2.Items.Add([/SIZE][SIZE=2][COLOR=#800000]"inch'"[/COLOR][/SIZE][SIZE=2])[/SIZE]
[SIZE=2]ComboBox2.Items.Add([/SIZE][SIZE=2][COLOR=#800000]"foot"[/COLOR][/SIZE][SIZE=2])[/SIZE]
[SIZE=2]ComboBox2.Items.Add([/SIZE][SIZE=2][COLOR=#800000]"yard"[/COLOR][/SIZE][SIZE=2])[/SIZE]
[SIZE=2]ComboBox2.Items.Add([/SIZE][SIZE=2][COLOR=#800000]"mile"[/COLOR][/SIZE][SIZE=2])[/SIZE]
[SIZE=2][COLOR=#0000ff]End[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]Sub[/COLOR][/SIZE]
```

In combobox1 the list of the rest of the items from combobox2 are displayed in order for

me to choose to what length to convert to.

```
[SIZE=2][COLOR=#0000ff]Private[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]Sub[/COLOR][/SIZE][SIZE=2] ComboBox2_SelectedIndexChanged([/SIZE][SIZE=2][COLOR=#0000ff]ByVal[/COLOR][/SIZE][SIZE=2] sender [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2] System.Object, [/SIZE]
[SIZE=2][COLOR=#0000ff]ByVal[/COLOR][/SIZE][SIZE=2] e [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2] System.EventArgs) [/SIZE][SIZE=2][COLOR=#0000ff]Handles[/COLOR][/SIZE][SIZE=2] ComboBox2.SelectedIndexChanged[/SIZE]
[SIZE=2][COLOR=#0000ff]Dim[/COLOR][/SIZE][SIZE=2] val [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]Integer[/COLOR][/SIZE][SIZE=2][COLOR=#008000]'index value of item[/COLOR][/SIZE]
[SIZE=2][COLOR=#0000ff]Dim[/COLOR][/SIZE][SIZE=2] num [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]Integer[/COLOR][/SIZE]
[SIZE=2][COLOR=#0000ff]Dim[/COLOR][/SIZE][SIZE=2] count [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]Integer[/COLOR][/SIZE][SIZE=2][COLOR=#008000]'number of items in each list[/COLOR][/SIZE]
[SIZE=2]val = ComboBox2.SelectedIndex[/SIZE]
[SIZE=2]count = ComboBox2.Items.Count[/SIZE]
[SIZE=2]ComboBox1.Items.Clear()[/SIZE]
[SIZE=2][COLOR=#0000ff]For[/COLOR][/SIZE][SIZE=2] num = 0 [/SIZE][SIZE=2][COLOR=#0000ff]To[/COLOR][/SIZE][SIZE=2] count - 1[/SIZE]
[SIZE=2][COLOR=#0000ff]If[/COLOR][/SIZE][SIZE=2] num <> val [/SIZE][SIZE=2][COLOR=#0000ff]Then[/COLOR][/SIZE]
[SIZE=2]ComboBox1.Items.Add(ComboBox2.Items.Item(num))[/SIZE]
[SIZE=2][COLOR=#0000ff]End[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]If[/COLOR][/SIZE]
[SIZE=2][COLOR=#0000ff]Next[/COLOR][/SIZE]
[SIZE=2][COLOR=#0000ff]End[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]Sub[/COLOR][/SIZE]
```

Now, for each convertion there is a different calculation for an example [i can choose from combobox2 "mm" and to convert it to "inch" from combobox1 and so on. the conversion will happen and the result will appear once i press the convert button.

What i needed was the best and shortest way to make it happen.