Well, from what I can deduce you wanna do I would use the following:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace TestApp
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private string[] table2 = new string[] { "12", "23", "3456", "456" };
private void comboBoxA_SelectedIndexChanged(object sender, EventArgs e)
{
char selectedChar = comboBoxA.Text[0];
comboBoxB.SelectedIndex = -1;
comboBoxB.Items.Clear();
for (int i = 0; i < table2.Length; i++)
{
if (table2[i][0] == selectedChar)
{
comboBoxB.Items.Add(table2[i]);
}
}
}
}
}