private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
label1.Text = comboBox1.Text;
if (comboBox1.Text == "PDA-type#1")
pictureBox1.Image = imageList1.Images[0];
else if (comboBox1.Text == "PDA-type#2")
pictureBox1.Image = imageList1.Images[1];
else if (comboBox1.Text == "PDA-type#3")
pictureBox1.Image = imageList1.Images[2];
else if (comboBox1.Text == "PDA-type#4")
pictureBox1.Image = imageList1.Images[3];
else if (comboBox1.Text == "PDA-type#5")
pictureBox1.Image = imageList1.Images[4];
else if (comboBox1.Text == "PDA-type#6")
pictureBox1.Image = imageList1.Images[5];
}
当comboBox1的内容变化时, label1的文本变为comboBox1的值;
当comboBox1的内容变化时, pictureBox1中相应展示imageList1中的图片
将imageList的ImageSize大小设置成和picture大小一样 否则照片会失真