So I want a Listbox and when u press an element in the list box the picture box changes the picture so I have 4 picture boxes behind each other and I want to do
If listBox1.SelectedItem "Flowers" Then
pictureBox1.Show():
pictureBox2.Hide();
pictureBox3.Hide();
but it keep getting an error I can't use if with selected item help
I'm using C# WinForms (.NET Framework)