We only learned a little, will not make, bosses help


CodePudding user response:
Private void button1_Click (object sender, EventArgs e){
ListBox1. Items. The Add (textBox1. "--" Text + + textBox2. Text);
}
Private void button2_Click (object sender, EventArgs e)
{
ListBox1. Items. RemoveAt (3);
}
Private void button3_Click (object sender, EventArgs e)
{
The switch (textBox1. Text)
{
Case "zhang SAN" : textBox2. Text="18956324017"; break;
Case "bill" : textBox2. Text="14045689203"; break;
Case "detective" : textBox2. Text="15632478952"; break;
What case "six" : textBox2. Text="13978542016"; break;
}
}
Private void button4_Click (object sender, EventArgs e)
{
The switch (textBox1. Text)
{
Case "zhang SAN" : listBox1. Items. RemoveAt (0); ListBox1. Items. The Add (textBox1. "--" Text + + textBox2. Text); break;
Case "bill" : listBox1. Items. RemoveAt (3); ListBox1. Items. The Add (textBox1. "--" Text + + textBox2. Text); break;
Case "detective" : listBox1. Items. RemoveAt (2); ListBox1. Items. The Add (textBox1. "--" Text + + textBox2. Text); break;
What case "six" : the listBox1. Items. RemoveAt (1); ListBox1. Items. The Add (textBox1. "--" Text + + textBox2. Text); break;
}
}
CodePudding user response:
To resources in the next casually, graduation season, now are all of the newCodePudding user response:
Online to find a source changeCodePudding user response:
Optional, directly choose a messagebox. Show hello world, finishedCodePudding user response:
The