Professional Documents
Culture Documents
8th Lecture
8th Lecture
Chapter 8
Windows Form Application (Codes)
{
if (listBox2.SelectedIndex == 0)
textBox2.Text = "January";
else if (listBox2.SelectedIndex == 1)
textBox2.Text = "February";
else if (listBox2.SelectedIndex == 2)
textBox2.Text = "March";
else if (listBox2.SelectedIndex == 3)
textBox2.Text = "April";
else if (listBox2.SelectedIndex == 4)
textBox2.Text = "May";
else if (listBox2.SelectedIndex == 5)
textBox2.Text = "June";
else if (listBox2.SelectedIndex == 6)
textBox2.Text = "July";
else if (listBox2.SelectedIndex == 7)
textBox2.Text = "August";
else if (listBox2.SelectedIndex == 8)
textBox2.Text = "September";
else if (listBox2.SelectedIndex == 9)
textBox2.Text = "October";
else if (listBox2.SelectedIndex == 10)
textBox2.Text = "November";
else
textBox2.Text = "December";
}
BBA-040 Software Engineering Lecture 8
Clear function
{
textBox1.Clear();
label1.Text = "";
listBox1.Items.Clear();
}