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;
using System.Collections;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void bindDate()
{
ArrayList arrayList = new ArrayList();
string[] posMsg = { "1,a", "2,b" };
for (int i = 0; i < posMsg.Length; i++)
{
string[] oneMsg;
oneMsg = posMsg[i].Split(',');
arrayList.Add(new DictionaryEntry(oneMsg[0], oneMsg[1]));
}
comboBox1.DataSource = arrayList;
comboBox1.ValueMember = "Key";