Home > Net >  For help, sprout new c #
For help, sprout new c #

Time:10-19

Requirements: write a Winform application, content optional
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 new

CodePudding user response:

Online to find a source change

CodePudding user response:

Optional, directly choose a messagebox. Show hello world, finished

CodePudding user response:

The
reference 4 floor hanghangz reply:
customize, directly choose a messagebox. Show hello world, finished

It is I don't want to score??

CodePudding user response:

Do another school do a graduation design, you can consult, I can give you some source code

SQL database, c #


  •  Tags:  
  • C#
  • Related