If ListBox1.Selected == 0
PictureBox1.Picture = "test01.gif";
EndIf
If ListBox1.Selected == 1
PictureBox1.Picture = "test02.gif";
EndIf
If ListBox1.Selected == 0
PictureBox1.Picture = "test01.gif";
EndIf
If ListBox1.Selected == 2
PictureBox1.Picture = "test03.gif";
EndIf