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 WindowsFormsApplication13
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void list1_SeletedIndexChanged(objectsender, EventArgs e)
{
int index = list1.SelectedIndex;
display.Text = list1.Items[index].ToString();
}
private void list2_SelectedIndexChanged(objectsender, EventArgs e) {
int index = list2.SelectedIndex;
display.Text = list2.Items[index].ToString();
}
}
}