Coding March 21 Hehe
Coding March 21 Hehe
listBox1.Items.Add(textBox1.Text);
textBox1.Text = "";
if (listBox1.SelectedIndex == 1)
this.BackColor = Color.Yellow;
if (listBox1.SelectedIndex == 2)
this.BackColor = Color.Blue;
if (listBox1.SelectedIndex == 3)
this.BackColor = Color.Pink;
if (listBox1.SelectedIndex == 4)
this.BackColor = Color.Black;
}
if (listBox1.SelectedIndex == 1)
listBox1.BackColor = Color.Yellow;
if (listBox1.SelectedIndex == 2)
listBox1.BackColor = Color.Blue;
if (listBox1.SelectedIndex == 3)
listBox1.BackColor = Color.Pink;
if (listBox1.SelectedIndex == 4)
listBox1.BackColor = Color.Black;
}